@php
    $user = Auth::user();
    $isChecker = $user->is_checker;
	$role_id = $user->cur_role_id;
@endphp
@extends('layouts.default')

@section('title', '教师档案袋')

@push('scripts')
<script src="{{ asset('lib/xm-select-v1.2.4/xm-select.js')}}"></script>
<script>
    layui.use(['layer','form','table','laytpl','laydate','element','laypage'], function(){
        var layer = layui.layer;
        var form = layui.form;
        var table = layui.table;
        var laytpl = layui.laytpl;
        var laydate = layui.laydate;
        var element = layui.element;
        var laypage = layui.laypage;
        var termId = 0;
        var originSelect;
        var originSelect1;
        var originSelect2;

        var Base;
        var Address;
        var School;
        var TitleInfo;

        var filters = {};
        var per_page = 10;
        var totalNum = 0;
        var Position =  "basic";
        var userId = "{{ request()->get('user_id', '') }}";
        var tabId = sessionStorage.getItem('archive_tab_id') ? sessionStorage.getItem('archive_tab_id') :  "1";
        var basicTabId = 1;
        var job_apply_id = 0;
        var job_id = 0;
        var scale_id = 0;
        var job_lay_pid = $("#tab-1").children('.layui-this').attr('lay-id');
        var job_lay_id = $("#tab-2").children('.layui-this').attr('lay-id');

        renderSelect();

        laydate.render({
            elem: '#birth-date'
            ,type: 'date'
            ,done: function(value, date, endDate){
                if(Base.birthday != value) {
                    let subData = {};
                    subData.data_type = 3;
                    subData.tab_id = basicTabId;
                    subData.user_id = userId;
                    subData.field = "birthday";
                    subData.field_name = "出生年月";
                    subData.change_value = value;
                    subData.update_value = value;
                    subData.iszc = false;

                    let originValue = Base.birthday;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;

                    toSubBasicInfo(subData);
                }
            }
        });
        laydate.render({
            elem: '#join-date'
            ,type: 'date'
            ,done: function(value, date, endDate){
                if(Base.join_date != value) {
                    let subData = {};
                    subData.data_type = 3;
                    subData.tab_id = basicTabId;
                    subData.user_id = userId;
                    subData.field = "join_date";
                    subData.field_name = "参加日期";
                    subData.change_value = value;
                    subData.update_value = value;
                    subData.iszc = false;

                    let originValue = Base.join_date;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;

                    toSubBasicInfo(subData);
                }
            }
        });
        laydate.render({
            elem: '#work-date'
            ,type: 'date'
            ,done: function(value, date, endDate){
                if(Base.work_date != value) {
                    let subData = {};
                    subData.data_type = 3;
                    subData.tab_id = basicTabId;
                    subData.user_id = userId;
                    subData.field = "work_date";
                    subData.field_name = "开始工作时间";
                    subData.change_value = value;
                    subData.update_value = value;
                    subData.iszc = false;

                    let originValue = Base.work_date;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;

                    toSubBasicInfo(subData);
                }
            }
        });
        laydate.render({
            elem: '#teaching-date'
            ,type: 'date'
            ,done: function(value, date, endDate){
                if(Base.teaching_date != value) {
                    let subData = {};
                    subData.data_type = 3;
                    subData.tab_id = basicTabId;
                    subData.user_id = userId;
                    subData.field = "teaching_date";
                    subData.field_name = "从事教师工作时间";
                    subData.change_value = value;
                    subData.update_value = value;
                    subData.iszc = false;

                    let originValue = Base.teaching_date;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;

                    toSubBasicInfo(subData);
                }
            }
        });
        laydate.render({
            elem: '#unit-date'
            ,type: 'date'
            ,done: function(value, date, endDate){
                if(Base.unit_date != value) {
                    let subData = {};
                    subData.data_type = 3;
                    subData.tab_id = basicTabId;
                    subData.user_id = userId;
                    subData.field = "unit_date";
                    subData.field_name = "进入本单位日期";
                    subData.change_value = value;
                    subData.update_value = value;
                    subData.iszc = false;

                    let originValue = Base.unit_date;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;

                    toSubBasicInfo(subData);
                }
            }
        });
        laydate.render({
            elem: '#graduate-date'
            ,type: 'date'
            ,done: function(value, date, endDate){
                if(School.graduate_date != value) {
                    let subData = {};
                    subData.data_type = 3;
                    subData.tab_id = basicTabId;
                    subData.user_id = userId;
                    subData.field = "graduated_date";
                    subData.field_name = "毕业日期";
                    subData.change_value = value;
                    subData.update_value = value;
                    subData.iszc = false;

                    let originValue = School.graduated_date;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;

                    toSubBasicInfo(subData);
                }
            }
        });
        laydate.render({
            elem: '#title-hd-date'
            ,type: 'date'
            ,done: function(value, date, endDate){
                if(curDateToYmd(TitleInfo.tea_gain_time) != value) {
                    let subData = {};
                    subData.data_type = 3;
                    subData.tab_id = basicTabId;
                    subData.user_id = userId;
                    subData.field = "tea_gain_time";
                    subData.field_name = "教师职称获得日期";
                    subData.change_value = value;
                    subData.update_value = value;
                    subData.iszc = true;

                    let originValue = TitleInfo.tea_gain_time;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;

                    toSubBasicInfo(subData);
                }
            }
        });
        laydate.render({
            elem: '#title-pr-date'
            ,type: 'date'
            ,done: function(value, date, endDate){
                if(curDateToYmd(TitleInfo.tea_employ_time) != value) {
                    let subData = {};
                    subData.data_type = 3;
                    subData.tab_id = basicTabId;
                    subData.user_id = userId;
                    subData.field = "tea_employ_time";
                    subData.field_name = "教师岗位聘任日期";
                    subData.change_value = value;
                    subData.update_value = value;
                    subData.iszc = true;

                    let originValue = TitleInfo.tea_employ_time;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;

                    toSubBasicInfo(subData);
                }
            }
        });
        laydate.render({
            elem: '#manage-hd-date'
            ,type: 'date'
            ,done: function(value, date, endDate){
                if(curDateToYmd(TitleInfo.manage_gain_time) != value) {
                    let subData = {};
                    subData.data_type = 3;
                    subData.tab_id = basicTabId;
                    subData.user_id = userId;
                    subData.field = "manage_gain_time";
                    subData.field_name = "管理岗位职称获得日期";
                    subData.change_value = value;
                    subData.update_value = value;
                    subData.iszc = true;

                    let originValue = TitleInfo.manage_gain_time;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;

                    toSubBasicInfo(subData);
                }
            }
        });
        laydate.render({
            elem: '#manage-pr-date'
            ,type: 'date'
            ,done: function(value, date, endDate){
                if(curDateToYmd(TitleInfo.manage_employ_time) != value) {
                    let subData = {};
                    subData.data_type = 3;
                    subData.tab_id = basicTabId;
                    subData.user_id = userId;
                    subData.field = "manage_employ_time";
                    subData.field_name = "管理岗位聘任日期";
                    subData.change_value = value;
                    subData.update_value = value;
                    subData.iszc = true;

                    let originValue = TitleInfo.manage_employ_time;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;

                    toSubBasicInfo(subData);
                }
            }
        });

        laydate.render({
            elem: '#position-begin-date'
            ,type: 'date'
        });
        laydate.render({
            elem: '#position-end-date'
            ,type: 'date'
        });
        laydate.render({
            elem: '#learn-begin-date'
            ,type: 'datetime'
        });
        laydate.render({
            elem: '#learn-end-date'
            ,type: 'datetime'
        });
        laydate.render({
            elem: '#work-begin-date'
            ,type: 'datetime'
        });
        laydate.render({
            elem: '#work-end-date'
            ,type: 'datetime'
        });
        laydate.render({
            elem: '#assess-date'
            ,type: 'year'
        });

        laydate.render({
            elem: '#begin_date'
        });
        laydate.render({
            elem: '#end_date'
        });
        laydate.render({
            elem: '#created_at'
        });


        element.on('tab(archivesTab)', function (data) {
            tabId = $(this).attr('lay-id');

            if(tabId == 1) {
                $(".search-row").addClass("layui-hide");
            } else {
                if(tabId > 1) {//tabId == 7
                    $("#term-item").find("select").siblings("div.layui-form-select").find("dd:eq(1)").click();
                }

                $(".search-row").removeClass("layui-hide");
            }

            switch (tabId) {
                case '2': renderTeachingInfo(); break;
                case '3': renderActivityInfo(); break;
                case '4': renderEducationInfo(); break;
                case '5': renderFacultyInfo(); break;
                case '6': renderAwardInfo(page = 1, limit = per_page); break;
                case '7': renderWorkInfo(); break;
                case '8': break;
                default: toPageInit();
            }

            sessionStorage.setItem('archive_tab_id', tabId);
        });
        element.on('tab(basicTab)', function (data) {
            basicTabId = $(this).attr('lay-id');
        });

        //下拉框及页面初始化
        async function renderSelect(){
            await renderTermSelect();
            await renderDictionarySelect();
            await renderOriginSelect();
            await renderPageInit();
            toPageInit();

            // 普通老师禁用
            let curUserRoleId = "{{$role_id}}";
            if(curUserRoleId == 2) {
                $("#basic-zhicheng-form").find('input,select,textarea').addClass('layui-disabled').attr("disabled","disabled");
                $("#certificate-no-input,#work-date,#teacher-no-input").addClass('layui-disabled').attr("disabled","disabled");
            }
        }


        async function refreshPage(){
            await renderPageInit();
            toPageInit();
        }

        //学期下拉框数据渲染
        function renderTermSelect() {
            return new Promise((resolve) => {
                getTermData({},function(res){
                    if(res.code == 1){
                        $('[data-role=termList]').empty().append('<option value="">请选择</option>');
                        $('[data-role=termTabList]').empty().append('<option value="">请选择</option>');
                        for(var i in res.data){
                            $('[data-role=termList]').append('<option value="'+res.data[i].id+'">'+res.data[i].title+'</option>');
                            $('[data-role=termTabList]').append('<option value="'+res.data[i].id+'">'+res.data[i].title+'</option>');
                        }

                        form.render('select');

                        resolve();
                    }
                });
            });
        }
        //字典下拉框数据渲染
        function renderDictionarySelect() {
            return new Promise((resolve) => {
                getDictionaryItem({'diccode': ['gender', 'nation', 'political', 'SUBJECT', 'academic', 'degree', 'title_teacher', 'title_manage', 'title_teacher_rank', 'title_manage_rank', 'position', 'SITUATION']}, function (res){
                    if(res.code === 1) {
                        let data = res.data;

                        for(var k in data) {
                            let key = k.toLowerCase();
                            let d = data[k];

                            $('[data-role='+key+'List]').empty().append('<option value="">请选择</option>');
                            for (var i in d) {
                                if(k == 'SITUATION' && (d[i].selectKey == 6 || d[i].selectKey == 7)) {
                                    $('[data-role='+key+'List]').append('<option value="' + d[i].optionId + '">优秀 - ' + d[i].selectValue + '</option>');
                                } else {
                                    $('[data-role='+key+'List]').append('<option value="' + d[i].optionId + '">' + d[i].selectValue + '</option>');
                                }
                            }
                        }

                        form.render();

                        resolve();
                    }
                });
            });
        }
        //籍贯级联下拉框数据渲染
        function renderOriginSelect() {
            return new Promise((resolve) => {
                getOriginSelect({}, function (res){
                    if(res.code === 1) {
                        originSelect = xmSelect.render({
                            el: '#jiguan',
                            prop: {
                                name: 'item_name',
                                value: 'id',
                            },
                            autoRow: true,
                            radio: true,
                            direction: 'down',
                            cascader: {
                                show: true,
                                indent: 200,
                            },
                            model: {
                                icon: 'hidden',
                                label: {
                                    type: 'xxxx', //自定义与下面的对应
                                    xxxx: {
                                        template(data, sels){
                                            return sels[0].__node.parent.item_name + " / " + sels[0].item_name
                                        }
                                    },
                                }
                            },
                            height: '200px',
                            data: function(){
                                return res.data
                            },
                            on: function(data){
                                //arr:  当前多选已选中的数据
                                var arr = data.arr;
                                //change, 此次选择变化的数据,数组
                                var change = data.change;
                                //isAdd, 此次操作是新增还是删除
                                var isAdd = data.isAdd;

                                let subData = {};
                                subData.data_type = 4;
                                subData.tab_id = basicTabId;
                                subData.user_id = userId;
                                subData.field = "native_place";
                                subData.field_name = "籍贯";
                                subData.iszc = false;

                                if(Base.native_place) {
                                    subData.type = 2;
                                    subData.origin_value = Base.native_place_set[0].province.selectValue + " / " +  Base.native_place_set[0].city.selectValue;

                                    if(isAdd) {
                                        //选择的的值没有改变
                                        if(arr[0].id == Base.native_place_set[0].optionId) {
                                            return false;
                                        } else {//已做修改
                                            subData.change_value = arr[0].__node.parent.item_name + " / " + arr[0].item_name
                                            subData.update_value = arr[0].id;
                                        }
                                    } else {
                                        // 删除之前的籍贯，提示
                                        subData.change_value = ""
                                        subData.update_value = "";
                                    }
                                } else {
                                    subData.type = 1;
                                    subData.origin_value = "";

                                    if(isAdd) {
                                        subData.change_value = arr[0].__node.parent.item_name + " / " + arr[0].item_name
                                        subData.update_value = arr[0].id;
                                    } else {//无值
                                        return false;
                                    }
                                }

                                toSubBasicInfo(subData);
                            }
                        });

                        originSelect1 = xmSelect.render({
                            el: '#huji',
                            prop: {
                                name: 'item_name',
                                value: 'id',
                            },
                            autoRow: true,
                            radio: true,
                            direction: 'down',
                            cascader: {
                                show: true,
                                indent: 200,
                            },
                            model: {
                                icon: 'hidden',
                                label: {
                                    type: 'xxxx', //自定义与下面的对应
                                    xxxx: {
                                        template(data, sels){
                                            return sels[0].__node.parent.item_name + " / " + sels[0].item_name
                                        }
                                    },
                                }
                            },
                            height: '200px',
                            data: function(){
                                return res.data
                            },
                            on: function(data){
                                //arr:  当前多选已选中的数据
                                var arr = data.arr;
                                //change, 此次选择变化的数据,数组
                                var change = data.change;
                                //isAdd, 此次操作是新增还是删除
                                var isAdd = data.isAdd;

                                let subData = {};
                                subData.data_type = 4;
                                subData.tab_id = basicTabId;
                                subData.user_id = userId;
                                subData.field = "census_city";
                                subData.field_name = "户籍地址";
                                subData.iszc = false;
                                //console.log(Address)

                                if (!isAdd) {
                                    subData.type = 2;
                                    subData.origin_value = Address.census_set[0].province.selectValue + " / " + Address.census_set[0].city.selectValue;

                                    if (isAdd) {
                                        //选择的的值没有改变
                                        if (arr[0].id == Address.census_set[0].optionId) {
                                            return false;
                                        } else {//已做修改
                                            subData.change_value = arr[0].__node.parent.item_name + " / " + arr[0].item_name
                                            subData.update_value = arr[0].id;
                                        }
                                    } else {
                                        // 删除之前的籍贯，提示
                                        subData.change_value = ""
                                        subData.update_value = "";
                                    }
                                } else {
                                    subData.type = 1;
                                    subData.origin_value = "";

                                    if (isAdd) {
                                        subData.change_value = arr[0].__node.parent.item_name + " / " + arr[0].item_name
                                        subData.update_value = arr[0].id;
                                    } else {//无值
                                        return false;
                                    }
                                }

                                toSubBasicInfo(subData);
                            }
                        });
                        originSelect2 = xmSelect.render({
                            el: '#jiating',
                            prop: {
                                name: 'item_name',
                                value: 'id',
                            },
                            autoRow: true,
                            radio: true,
                            direction: 'down',
                            cascader: {
                                show: true,
                                indent: 200,
                            },
                            model: {
                                icon: 'hidden',
                                label: {
                                    type: 'xxxx', //自定义与下面的对应
                                    xxxx: {
                                        template(data, sels){
                                            return sels[0].__node.parent.item_name + " / " + sels[0].item_name
                                        }
                                    },
                                }
                            },
                            height: '200px',
                            data: function(){
                                return res.data
                            },
                            on: function(data){
                                //arr:  当前多选已选中的数据
                                var arr = data.arr;
                                //change, 此次选择变化的数据,数组
                                var change = data.change;
                                //isAdd, 此次操作是新增还是删除
                                var isAdd = data.isAdd;

                                let subData = {};
                                subData.data_type = 4;
                                subData.tab_id = basicTabId;
                                subData.user_id = userId;
                                subData.field = "home_city";
                                subData.field_name = "家庭地址";
                                subData.iszc = false;

                                if(Address.home_city) {
                                    subData.type = 2;
                                    subData.origin_value = Address.home_set[0].province.selectValue + " / " +  Address.home_set[0].city.selectValue;

                                    if(isAdd) {
                                        //选择的的值没有改变
                                        if(arr[0].id == Address.home_set[0].optionId) {
                                            return false;
                                        } else {//已做修改
                                            subData.change_value = arr[0].__node.parent.item_name + " / " + arr[0].item_name
                                            subData.update_value = arr[0].id;
                                        }
                                    } else {
                                        // 删除之前的籍贯，提示
                                        subData.change_value = ""
                                        subData.update_value = "";
                                    }
                                } else {
                                    subData.type = 1;
                                    subData.origin_value = "";

                                    if(isAdd) {
                                        subData.change_value = arr[0].__node.parent.item_name + " / " + arr[0].item_name
                                        subData.update_value = arr[0].id;
                                    } else {//无值
                                        return false;
                                    }
                                }

                                toSubBasicInfo(subData);
                            }
                        });

                        resolve();
                    }
                });
            });
        }

        function renderPageInit() {
            return new Promise((resolve) => {
                getTeacherBaseInfo({user_id: userId}, function(res) {
                    if(res.code === 1) {
                        Base = res.data;

                        if(Base.last_group_id == 11800) {
                            $(".houqing").removeClass('layui-hide');
                            $(".zhengchang").remove();
                        } else {
                            $(".houqing").remove();
                        }

                        resolve();
                    }
                });
            });
        }

        function renderPageInit2() {
            getTeacherBaseInfo({user_id: userId}, function(res) {
                if(res.code === 1) {
                    Base = res.data;
                    if(Base.last_group_id == 11800) {
                        $(".houqing").removeClass('layui-hide');
                        $(".zhengchang").remove();
                    } else {
                        $(".houqing").remove();
                    }
                    toPageInit();
                }
            });
        }

        function toPageInit() {
            if(!Base) return false;
            userId = Base.user_id;
            console.log(Base.address)
            Address = Base.address ? Base.address : null;
            School = Base.graduated_school ? Base.graduated_school : null;
            TitleInfo = Base.title_info ? Base.title_info : null;

            let Assessment = Base.assessment ? Base.assessment : [];
            let Learn = Base.learn_history ? Base.learn_history : [];
            let Position = Base.position ? Base.position : null;
            let Work = Base.work_history ? Base.work_history : [];


            let tcno = Base.teacher_certificate_no ? Base.teacher_certificate_no : '';
            if(!tcno || tcno == 'null') {
                tcno = '';
            }

            form.val('basicInfoForm', {
                // "user_id": Base.user_id ? Base.user_id : User.user_id,
                "name": Base.name ? Base.name : Base.name,
                "gender": Base.gender ? Base.gender_set[0].optionId : '',
                "id_no": Base.id_no && Base.id_card_no ? Base.id_card_no : '',
                "birthday": Base.birthday ? Base.birthday : '',
                "nation": Base.nation ? Base.nation_set[0].optionId : '',
                "political": Base.political ? Base.political_set[0].optionId : '',
                "join_date": Base.join_date ? Base.join_date : '',
                "mobile": Base.mobile ? Base.mobile : '',
                "phone_num": Base.phone_num ? Base.phone_num : '',
                "teacher_certificate_no": tcno,
                "work_date": Base.work_date ? Base.work_date : '',
                "teaching_date": Base.teaching_date ? Base.teaching_date : '',
                "unit_date": Base.unit_date ? Base.unit_date : '',
                "teacher_no": Base.teacher_no ? Base.teacher_no : '',
                "email": Base.email ? Base.email : '',
                "major_subject": Base.major_subject ? Base.major_subject_array[0].optionId : ''
            });
            //籍贯
            if(Base.native_place) {
                originSelect.setValue([Base.native_place_set[0].city.optionId]);
            }
            // 毕业院校
            form.val('basicSchoolForm', {
                "graduated_school": School && School.graduated_school ? School.graduated_school : '',
                "graduated_date": School && School.graduated_date ? curDateToYmd(School.graduated_date) : '',
                "academic": School && School.academic ? School.academic_set[0].optionId : '',
                "degree": School && School.degree ? School.degree_set[0].optionId : '',
            });
            // 地址信息
            form.val('basicAddressForm', {
                "census_postcode": Address && Address.census_postcode ? Address.census_postcode : '',
                "census_address": Address && Address.census_address ? Address.census_address : '',
                "home_postcode": Address && Address.home_postcode ? Address.home_postcode : '',
                "home_address": Address && Address.home_address ? Address.home_address : ''
            });
            //户籍地址
            if(Address && Address.census_city) {
                originSelect1.setValue([Address.census_set[0].city.optionId]);
            }
            // 家庭地址
            if(Address && Address.home_city) {
                originSelect2.setValue([Address.home_set[0].city.optionId]);
            }
            // 职称
            form.val('basicZhichengForm', {
                "tea_title": TitleInfo && TitleInfo.tea_title ? TitleInfo.title_set[0].optionId : '',
                "tea_gain_time": TitleInfo && TitleInfo.tea_gain_time ? curDateToYmd(TitleInfo.tea_gain_time) : '',
                "tea_title_rank": TitleInfo && TitleInfo.tea_title_rank ? TitleInfo.rank_set[0].optionId : '',
                "tea_employ_time": TitleInfo && TitleInfo.tea_employ_time ? curDateToYmd(TitleInfo.tea_employ_time) : '',
                "manage_title": TitleInfo && TitleInfo.manage_title && TitleInfo.manage_title_set.length > 0 ? TitleInfo.manage_title_set[0].optionId : '',
                "manage_gain_time": TitleInfo && TitleInfo.manage_gain_time ? curDateToYmd(TitleInfo.manage_gain_time) : '',
                "manage_title_rank": TitleInfo && TitleInfo.manage_title_rank && TitleInfo.manage_rank_set.length > 0 ? TitleInfo.manage_rank_set[0].optionId : '',
                "manage_employ_time": TitleInfo && TitleInfo.manage_employ_time ? curDateToYmd(TitleInfo.manage_employ_time) : '',
            });

            form.render();

            // 职务
            showPositionTable(Position);
            // 学习经历
            showLearnHistoryTable(Learn);
            // 工作经历
            showWorkHistoryTable(Work);
            // 年度考核
            showAssessmentTable(Assessment);
            //权限按钮控制
            setBtnPermission();
        }

        // 岗位等级级联数据处理
        form.on('select(title_teacherList)', function(data){
            // console.log(data.elem); //得到select原始DOM对象
            // console.log(data.value); //得到被选中的值
            // console.log(data.othis); //得到美化后的DOM对象

            renderRankRelation(data.value);
        });
        form.on('select(title_manageList)', function(data){
            renderRankRelation(data.value, 'title_manage_rank');
        });
        function renderRankRelation(pid, code = 'title_teacher_rank'){
            getDicRelationItem({pid: pid, code: code}, function(res) {
                if(res.code === 1) {
                    let d = res.data;

                    $('[data-role='+code+'List]').empty().append('<option value="">请选择</option>');
                    for (var i in d) {
                        $('[data-role='+code+'List]').append('<option value="' + d[i].id + '">' + d[i].item_name + '</option>');
                    }

                    form.render();
                }
            });
        }

        // 表格渲染
        showPositionTable = function(data) {
            table.render({
                data: data,
                elem: '#positionTable',
                toolbar: '#positionToolbarHead', //开启头部工具栏，并为其绑定左侧模板
                defaultToolbar: [],
                skin: 'nob',
                cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                cols: [[
                    {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                        return d.data_version_id ? d.term.title : '-';
                    }},
                    {field: 'title_name', title: '职务', templet: function(d) {
                        return d.title_set.length > 0 ? d.title_set[0].selectValue : '-';
                    }},
                    {field: 'begin_date', title: '开始时间'},
                    {field: 'end_date', title: '结束时间'},
                    {title: '操作', align: 'center', toolbar: '#opPositionDemo', fixed:'right'}
                ]],
                id:"positionTable",
                page: false,
                limit: data ? data.length : 10
            });
        }
        showLearnHistoryTable = function(data) {
            table.render({
                data: data,
                elem: '#learnHistoryTable',
                toolbar: '#learnHistoryToolbarHead', //开启头部工具栏，并为其绑定左侧模板
                defaultToolbar: [],
                skin: 'nob',
                cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                cols: [[
                    {field: 'name', title: '毕业院校'},
                    {field: 'begin_date', title: '开始时间', templet: function(d) {
                        return curDateToYmd(d.begin_time);
                    }},
                    {field: 'end_date', title: '结束时间', templet: function(d) {
                        return curDateToYmd(d.end_time);
                    }},
                    {field: 'certifier', title: '证明人'},
                    {title: '操作', align: 'center', toolbar: '#opLearHistoryDemo', fixed:'right'}
                ]],
                id:"learnHistoryTable",
                page: false,
                limit: data ? data.length : 10
            });
        }
        showWorkHistoryTable = function(data) {
            table.render({
                data: data,
                elem: '#workHistoryTable',
                toolbar: '#workHistoryToolbarHead', //开启头部工具栏，并为其绑定左侧模板
                defaultToolbar: [],
                skin: 'nob',
                cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                cols: [[
                    {field: 'name', title: '工作单位'},
                    {field: 'begin_date', title: '开始时间', templet: function(d) {
                        return curDateToYmd(d.begin_time);
                    }},
                    {field: 'end_date', title: '结束时间', templet: function(d) {
                        return curDateToYmd(d.end_time);
                    }},
                    {title: '操作', align: 'center', toolbar: '#opWorkHistoryDemo', fixed:'right'}
                ]],
                id:"workHistoryTable",
                page: false,
                limit: data ? data.length : 10
            });
        }
        showAssessmentTable = function(data) {
            table.render({
                data: data,
                elem: '#assessmentTable',
                toolbar: '#assessmentToolbarHead', //开启头部工具栏，并为其绑定左侧模板
                defaultToolbar: [],
                skin: 'nob',
                cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                cols: [[
                    {field: 'assess_year', title: '考核年度'},
                    {field: 'situation_status', title: '考核情况', templet: function(d) {
                        return d.situation_set.length > 0 ? d.situation_set[0].selectValue : '-';
                    }},
                    {title: '操作', align: 'center', toolbar: '#opAssessmentDemo', fixed:'right'}
                ]],
                id:"assessmentTable",
                page: false,
                limit: data ? data.length : 10
            });
        }

        // 教育教学信息渲染
        async function renderTeachingInfo() {
            await renderDisciplineInfo();//任教学科
            await renderOpenInfo();//公开教学
            await renderExperienceInfo();//经验交流
            await renderProjectInfo();//项目化
            await renderTeacherInfo();//全员导师制
            await renderStudyInfo();//课题研究
            await renderPaperInfo();//文章发表
            await renderTreatiseInfo();//论著发表
            await renderSubjectInfo();//开发科目
            //await renderLiveInfo();//直播管理
            await renderReflectInfo();//教学反思
        }
        // 实践活动信息渲染
        async function renderEducationInfo() {
            await renderHeadmasterInfo();//班主任
            await renderPlanInfo();//计划和总结
            await renderHonorInfo();//班级荣誉
            await renderThemeInfo();//主题活动
        }
        // 教师培训信息渲染
        async function renderFacultyInfo() {
            await renderCoursesInfo();//开发课程
            await renderCreditsInfo();//学分培训
            await renderResearchInfo();//参与教研
            await renderOutrainingInfo();//外出培训
            await renderOtherInfo();//其他培训
        }
        // 重要工作信息渲染
        async function renderWorkInfo() {
            await renderTeachworkInfo();//带教情况
            await renderInworkInfo();//校内工作
            await renderOutworkInfo();//校外工作
        }
        // 考核管理信息渲染
        async function renderAssessManageInfo() {
            await renderJobCompetitionInfo();//岗位竞聘
            await renderJobCompetitionPage();
        }

        // 任教学科信息渲染
        function renderDisciplineInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                'user_id': userId
            };
            return new Promise((resolve) => {
                getDisciplineList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'discipline')

                        table.render({
                            data: res.data,
                            elem: '#disciplineTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    return d.data_version_id ? d.term.title : '-';
                                }},
                                {field: 'subject', title: '学科名称', align: 'center', templet: function(d) {
                                    return d.subject_set.length > 0 ? d.subject_set[0].selectValue : '-';
                                }},
                                {field: 'grade', title: '年级', align: 'center', templet: function(d) {
                                        return d.grade_set ? d.grade_set.grades : '-';
                                    }},
                                {field: 'class', title: '班级', align: 'center', templet: function(d) {
                                        return d.class_set ? d.class_set.classes : '-';
                                    }},
                                {field: 'start_date', title: '开始日期', align: 'center'},
                                {field: 'end_date', title: '结束日期', align: 'center'},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#disciplineOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //公开教学信息渲染
        function renderOpenInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'TEARRESEARCH_OPEN_TABLE',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'open')

                        table.render({
                            data: res.data,
                            elem: '#openTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    let termName = d.data_version_id ? d.term.title : '-';
                                    return d.data_version_name ? d.data_version_name : termName;
                                }},
                                {field: 'name', title: '课题名称', align: 'center'},
                                {field: 'begin_date', title: '日期', align: 'center'},
                                {field: 'course_name', title: '学科', align: 'center', templet: function(d) {
                                    return d.course_set.length > 0 ? d.course_set[0].selectValue : '-';
                                }},
                                {field: 'grade_name', title: '年级', align: 'center', templet: function(d) {
                                    return d.grade_array.length > 0 ? d.grade_array[0].selectValue : '-';
                                }},
                                {field: 'class_name', title: '班级', align: 'center', templet: function(d) {
                                    return d.class_item_set.length > 0 ? d.class_item_set[0].selectValue : '-';
                                }},
                                {field: 'creator', title: '创建人', align: 'center', templet: function(d) {
                                    return d.creator ? d.creator.nickname : '-';
                                }},
                                {field: 'created_at', title: '创建时间', align: 'center'},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#openOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //经验交流信息渲染
        function renderExperienceInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'TEARRESEARCH_EXCHANGE_TABLE',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'experience')

                        table.render({
                            data: res.data,
                            elem: '#experienceTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    let termName = d.data_version_id ? d.term.title : '-';
                                    return d.data_version_name ? d.data_version_name : termName;
                                }},
                                {field: 'name', title: '主题名称', align: 'center'},
                                {field: 'category_name', title: '类别', align: 'center', templet: function(d) {
                                    if(d.activity_category == 'EW_EXCHANGE_EXPERIENCE_TABLE') {
                                        return '教育';
                                    } else if(d.activity_category == 'TEARRESEARCH_EXCHANGE_TABLE') {
                                        return '教学'
                                    } else {
                                        return '-';
                                    }
                                    return d.level_array.length > 0 ? d.level_array[0].selectValue : '-';
                                }},
                                {field: 'begin_date', title: '日期', align: 'center'},
                                {field: 'level_name', title: '级别', align: 'center', templet: function(d) {
                                    return d.level_array.length > 0 ? d.level_array[0].selectValue : '-';
                                }},
                                {field: 'course_name', title: '学科', align: 'center', templet: function(d) {
                                    return d.course_set.length > 0 ? d.course_set[0].selectValue : '-';
                                }},
                                {field: 'reception_class_name', title: '接待课', align: 'center', templet: function(d) {
                                    return d.reception_class_set.length > 0 ? d.reception_class_set[0].selectValue : '-';
                                }},
                                {field: 'status_name', title: '状态', align: 'center', templet: function(d) {
                                    switch(d.status) {
                                        case 'REVOKE':
                                            return '撤回';
                                            break;
                                        case 'FILL_IN':
                                            return '未提交';
                                            break;
                                        case 'REVIEW':
                                            return '待审核';
                                            break;
                                        case 'REVIEW_FAIL':
                                            return '已驳回';
                                            break;
                                        case 'PASS':
                                            return '审核通过';
                                            break;
                                        default:
                                            return '-';
                                            break;
                                    }
                                }},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#experienceOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //项目化信息渲染
        function renderProjectInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'TEACHING_PROJECT_TABLE',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'experience')

                        table.render({
                            data: res.data,
                            elem: '#projectTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                        let termName = d.data_version_id ? d.term.title : '-';
                                        return d.data_version_name ? d.data_version_name : termName;
                                    }},
                                {field: 'name', title: '项目名称', align: 'center'},
                                {field: 'begin_date', title: '日期', align: 'center', templet: function(d) {
                                        if(d.activity_category == 'EW_CLASS_MEETING_TABLE') {
                                            return d.date ? d.date : d.begin_date;
                                        }

                                        return d.begin_date;
                                    }},
                                {field: 'grade_name', title: '年级', align: 'center', templet: function(d) {
                                        return d.grade_array.length > 0 ? d.grade_array[0].selectValue : '-';
                                    }},

                                {field: 'creator', title: '创建人', align: 'center', templet: function(d) {
                                        return d.creator ? d.creator.nickname : '-';
                                    }},
                                {field: 'created_at', title: '创建日期', align: 'center'},
                                {field: 'status_name', title: '状态', align: 'center', templet: function(d) {
                                        switch(d.status) {
                                            case 'REVOKE':
                                                return '撤回';
                                                break;
                                            case 'FILL_IN':
                                                return '未提交';
                                                break;
                                            case 'REVIEW':
                                                return '待审核';
                                                break;
                                            case 'REVIEW_FAIL':
                                                return '已驳回';
                                                break;
                                            case 'PASS':
                                                return '审核通过';
                                                break;
                                            default:
                                                return '-';
                                                break;
                                        }
                                    }},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#projectOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //全员导师制渲染
        function renderTeacherInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'TEACHING_TEACHER_TABLE',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'teacher')
                        console.log(res.data)
                        table.render({
                            data: res.data,
                            elem: '#teacherTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                        let termName = d.data_version_id ? d.term.title : '-';
                                        return d.data_version_name ? d.data_version_name : termName;
                                    }},
                                {field: 'name', title: '主题名称', align: 'center'},

                                {field: 'begin_date', title: '日期', align: 'center', templet: function(d) {
                                        return d.begin_date;
                                    }},
                                {field: 'grade_name', title: '年级', align: 'center', templet: function(d) {
                                        return d.grade_array.length > 0 ? d.grade_array[0].selectValue : '-';
                                    }},
                                {field: 'class_name', title: '班级', align: 'center', templet: function(d) {
                                        return d.class_item_set.length > 0 ? d.class_item_set[0].selectValue : '-';
                                    }},
                                {field: 'creator', title: '创建人', align: 'center', templet: function(d) {
                                        return d.creator ? d.creator.nickname : '-';
                                    }},
                                {field: 'status_name', title: '状态', align: 'center', templet: function(d) {
                                        switch(d.status) {
                                            case 'REVOKE':
                                                return '撤回';
                                                break;
                                            case 'FILL_IN':
                                                return '未提交';
                                                break;
                                            case 'REVIEW':
                                                return '待审核';
                                                break;
                                            case 'REVIEW_FAIL':
                                                return '已驳回';
                                                break;
                                            case 'PASS':
                                                return '审核通过';
                                                break;
                                            default:
                                                return '-';
                                                break;
                                        }
                                    }},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#teacherOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //课题研究信息渲染
        function renderStudyInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'TEARRESEARCH_SUBJECT_STUDY_TABLE',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getStudyList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'study')

                        table.render({
                            data: res.data,
                            elem: '#studyTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    let termName = d.data_version_id ? d.term.title : '-';
                                    return d.data_version_name ? d.data_version_name : termName;
                                }},
                                {field: 'name', title: '课题名称', align: 'center'},
                                {field: 'activity_type', title: '类别', align: 'center', templet: function(d) {
                                    if(d.activity_category == 'EW_SUBJECT_RESEARCH_TABLE') {
                                        return '教育';
                                    } else if(d.activity_category == 'TEARRESEARCH_SUBJECT_STUDY_TABLE') {
                                        return '教学'
                                    } else {
                                        return '-';
                                    }
                                    return d.level_array.length > 0 ? d.level_array[0].selectValue : '-';
                                }},
                                {field: 'begin_date', title: '开始日期', align: 'center'},
                                {field: 'end_date', title: '结束日期', align: 'center'},
                                {field: 'level_name', title: '级别', align: 'center', templet: function(d) {
                                    return d.level_array.length > 0 ? d.level_array[0].selectValue : '-';
                                }},
                                {field: 'compere_name', title: '主持人', align: 'center', templet: function(d) {
                                    return d.compere.length > 0 && d.compere[0].user ? d.compere[0].user.nickname : '-';
                                }},
                                {field: 'stage_name', title: '课题阶段', align: 'center', templet: function(d) {
                                    switch(d.stage) {
                                        case 1:
                                            return '申报阶段';
                                            break;
                                        case 2:
                                            return '立项阶段';
                                            break;
                                        case 3:
                                            return '中期阶段';
                                            break;
                                        case 4:
                                            return '结项阶段';
                                            break;
                                        default:
                                            return '-';
                                            break;
                                    }
                                }},
                                {field: 'status_name', title: '状态', align: 'center', templet: function(d) {
                                        if((d.stage === 0 )  && d.old_status) {
                                            switch(d.old_status) {
                                                case 'REVOKE':
                                                    return '撤回';
                                                    break;
                                                case 'FILL_IN':
                                                    return '未提交';
                                                    break;
                                                case 'REVIEW':
                                                    return '待审核';
                                                    break;
                                                case 'REVIEW_FAIL':
                                                    return '已驳回';
                                                    break;
                                                case 'PASS':
                                                    return '审核通过';
                                                    break;
                                                default:
                                                    return '-';
                                                    break;
                                            }
                                        }

                                        statusName = "";
                                        if(d.stages.length > 0) {
                                            let Stages = d.stages.length > 0 ? d.stages : [];
                                            layui.each(Stages, function(i, s) {
                                                if(s.stage == d.stage) {
                                                    if((d.stage == 2  && s.status == 1 && d.old_status == 'FILL_IN') ){//
                                                        statusName = '未提交';
                                                    }else {
                                                        statusName = s.status_set;
                                                    }
                                                }
                                            });

                                            if(!statusName) {
                                                statusName = "待提交";
                                            }
                                        } else {
                                            statusName = "-";
                                        }
                                        return statusName;
                                    }},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#studyOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //文章发表信息渲染
        function renderPaperInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'TEARRESEARCH_PUBLISH_TABLE',
                "pubications_publish_type": 128,
                "json_search": {pubications_publish_type: 128},
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'paper')

                        table.render({
                            data: res.data,
                            elem: '#paperTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    let termName = d.data_version_id ? d.term.title : '-';
                                    return d.data_version_name ? d.data_version_name : termName;
                                }},
                                {field: 'name', title: '论文名称', align: 'center'},
                                {field: 'activity_category_name', title: '类别', align: 'center', templet: function(d) {
                                    switch(d.activity_category) {
                                        case 'TEARRESEARCH_PUBLISH_TABLE':
                                            return '教学';
                                            break;
                                        case 'EW_PAPER_PUBLISH_TABLE':
                                            return '教育';
                                            break;
                                        default:
                                            return '-';
                                            break;
                                    }
                                }},
                                {field: 'begin_date', title: '发表日期', align: 'center'},
                                {field: 'level', title: '级别', align: 'center', templet: function(d) {
                                    return d.level_array.length > 0 ? d.level_array[0].selectValue : '-';
                                }},
                                {field: 'creator', title: '创建人', align: 'center', templet: function(d) {
                                    return d.creator ? d.creator.nickname : '-';
                                }},
                                {field: 'status_name', title: '状态', align: 'center', templet: function(d) {
                                    switch(d.status) {
                                        case 'REVOKE':
                                            return '撤回';
                                            break;
                                        case 'FILL_IN':
                                            return '未提交';
                                            break;
                                        case 'REVIEW':
                                            return '待审核';
                                            break;
                                        case 'REVIEW_FAIL':
                                            return '已驳回';
                                            break;
                                        case 'PASS':
                                            return '审核通过';
                                            break;
                                        default:
                                            return '-';
                                            break;
                                    }
                                }},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#paperOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //论著发表信息渲染
        function renderTreatiseInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'TEARRESEARCH_PUBLISH_TABLE',
                "pubications_publish_type": 129,
                "json_search": {pubications_publish_type: 129},
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'treatise')

                        table.render({
                            data: res.data,
                            elem: '#treatiseTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    let termName = d.data_version_id ? d.term.title : '-';
                                    return d.data_version_name ? d.data_version_name : termName;
                                }},
                                {field: 'name', title: '论著名称', align: 'center'},
                                {field: 'activity_category_name', title: '类别', align: 'center', templet: function(d) {
                                        switch(d.activity_category) {
                                            case 'TEARRESEARCH_PUBLISH_TABLE':
                                                return '教学';
                                                break;
                                            case 'EW_PAPER_PUBLISH_TABLE':
                                                return '教育';
                                                break;
                                            default:
                                                return '-';
                                                break;
                                        }
                                    }},
                                {field: 'begin_date', title: '发表日期', align: 'center'},

                                {field: 'level', title: '级别', align: 'center', templet: function(d) {
                                    return d.level_array.length > 0 ? d.level_array[0].selectValue : '-';
                                }},
                                {field: 'creator', title: '创建人', align: 'center', templet: function(d) {
                                    return d.creator ? d.creator.nickname : '-';
                                }},
                                {field: 'status_name', title: '状态', align: 'center', templet: function(d) {
                                    switch(d.status) {
                                        case 'REVOKE':
                                            return '撤回';
                                            break;
                                        case 'FILL_IN':
                                            return '未提交';
                                            break;
                                        case 'REVIEW':
                                            return '待审核';
                                            break;
                                        case 'REVIEW_FAIL':
                                            return '已驳回';
                                            break;
                                        case 'PASS':
                                            return '审核通过';
                                            break;
                                        default:
                                            return '-';
                                            break;
                                    }
                                }},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#treatiseOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //开发科目信息渲染
        function renderSubjectInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'TEARRESEARCH_DEVELOP_SUBJECT_TABLE',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'subject')

                        table.render({
                            data: res.data,
                            elem: '#subjectTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    let termName = d.data_version_id ? d.term.title : '-';
                                    return d.data_version_name ? d.data_version_name : termName;
                                }},
                                {field: 'name', title: '科目名称', align: 'center'},
                                {field: 'begin_date', title: '开始时间', align: 'center'},
                                {field: 'end_date', title: '结束时间', align: 'center'},
                                {field: 'course_name', title: '学科', align: 'center', templet: function(d) {
                                    return d.course_set.length > 0 ? d.course_set[0].selectValue : '-';
                                }},
                                {field: 'grade_name', title: '年级', align: 'center', templet: function(d) {
                                    return d.grade_array.length > 0 ? d.grade_array[0].selectValue : '-';
                                }},
                                {field: 'creator', title: '创建人', align: 'center', templet: function(d) {
                                    return d.creator ? d.creator.nickname : '-';
                                }},
                                {field: 'created_at', title: '创建时间', align: 'center'},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#subjectOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //直播管理信息渲染
        function renderLiveInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                'user_id': userId
            };
            return new Promise((resolve) => {
                getLiveList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'live')

                        table.render({
                            data: res.data,
                            elem: '#liveTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    let termName = d.data_version_id ? d.term.title : '-';
                                    return d.data_version_name ? d.data_version_name : termName;
                                }},
                                {field: 'name', title: '标题', align: 'center'},
                                {field: 'live_time', title: '直播时间', align: 'center'},
                                {field: 'subject', title: '学科', align: 'center'},
                                {field: 'grade', title: '年级', align: 'center'},
                                {field: 'host_name', title: '主讲人', align: 'center', templet: function(d) {
                                    if(d.host_set) {
                                        let h = '';
                                        let u = d.host_set.host_users;
                                        let l = u.length - 1;
                                        layui.each(u, function(i, item) {
                                            if(i >= l) {
                                                h += item.nickname;
                                            } else {
                                                h += item.nickname + ', ';
                                            }
                                        });
                                        return h;
                                    } else {
                                        return '-';
                                    }
                                }},
                                {field: 'creator', title: '创建人', align: 'center', templet: function(d) {
                                    return d.creator ? d.creator.nickname : '-';
                                }},
                                {field: 'xx', title: '状态', align: 'center'},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#liveOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }

        //教学反思信息渲染
        function renderReflectInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'TEACHING_REFLECT_TABLE',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'reflect')

                        table.render({
                            data: res.data,
                            elem: '#reflectTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                        let termName = d.data_version_id ? d.term.title : '-';
                                        return d.data_version_name ? d.data_version_name : termName;
                                    }},
                                {field: 'name', title: '案例名称', align: 'center'},
                                {field: 'is_young_teachers', title: '是否为青年教师', align: 'center', templet: function(d) {
                                        return d.is_young_teachers ==1 ? '是' : '否';
                                    }},
                                {title: '创建人', align: 'center', templet: function(d) {
                                        return d.creator ? d.creator.nickname : '-';
                                    }},
                                {title: '教研组', align: 'center', templet: function(d) {
                                        return d.jyz_name ? d.jyz_name : '-';
                                    }},
                                {field: 'status_name', title: '状态', align: 'center', templet: function(d) {
                                        switch(d.status) {
                                            case 'REVOKE':
                                                return '撤回';
                                                break;
                                            case 'FILL_IN':
                                                return '未提交';
                                                break;
                                            case 'REVIEW':
                                                return '待审核';
                                                break;
                                            case 'REVIEW_FAIL':
                                                return '已驳回';
                                                break;
                                            case 'PASS':
                                                return '审核通过';
                                                break;
                                            default:
                                                return '-';
                                                break;
                                        }
                                    }},
                                {field: 'created_at', title: '创建时间', align: 'center'},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#reflectOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }

        //教研活动信息渲染
        function renderActivityInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'TEACHERTRAINING_ACTIVITY_TABLE',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getTeaActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'activity')

                        table.render({
                            data: res.data,
                            elem: '#activityTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    let termName = d.data_version_id ? d.term.title : '-';
                                    return d.data_version_name ? d.data_version_name : termName;
                                }},
                                {field: 'name', title: '教研名称', align: 'center'},
                                {field: 'activity_type_name', title: '活动类别', align: 'center', templet: function(d) {
                                    let ta = d.teaching_activity ? d.teaching_activity : '';
                                    return ta ? ta.activity_type_name : '-';
                                }},
                                {field: 'level_name', title: '级别', align: 'center', templet: function(d) {
                                        let activityLevel = d.teaching_activity && d.teaching_activity.activity_level ? d.teaching_activity.activity_level : '';
                                        let oldLevel = d.level_array.length > 0 ? d.level_array[0].selectValue : '-';
                                        return activityLevel ? activityLevel : oldLevel;
                                    }},
                                {field: 'course_name', title: '学科', align: 'center', templet: function(d) {
                                        // return d.course_set.length > 0 ? d.course_set[0].selectValue : '-';
                                        let courses = '';
                                        if(d.course_set.length > 0) {
                                            d.course_set.forEach(function(course) {
                                                courses += course.selectValue + ' ';
                                            });
                                            return courses.trim().replace(/\s/g, ',');
                                        } else {
                                            return '-';
                                        }
                                    }},
                                {field: 'begin_date', title: '开始日期', align: 'center'},
                                {field: 'end_date', title: '结束日期', align: 'center'},
                                {field: 'creator', title: '创建人', align: 'center', templet: function(d) {
                                    return d.creator ? d.creator.nickname : '-';
                                }},
                                {field: 'created_at', title: '创建日期', align: 'center'},
                                {field: 'activity_date_status', title: '状态', align: 'center'},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#tactivityOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }

        // 班主任信息渲染
        function renderHeadmasterInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                'user_id': userId
            };
            return new Promise((resolve) => {
                getHeadmasterList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'headmaster')

                        table.render({
                            data: res.data,
                            elem: '#headmasterTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    return d.data_version_id ? d.term.title : '-';
                                }},
                                {field: 'class_name', title: '班级名称', align: 'center', templet: function(d) {
                                    let gradeSet = d.grade_set.length > 0 ? d.grade_set[0].selectValue : '';
                                    let classSet = d.class_set.length > 0 ? d.class_set[0].selectValue : '';
                                    return gradeSet || classSet ? gradeSet + classSet : '-';
                                }},
                                {field: 'chief', title: '正副情况', align: 'center', templet: function(d) {
                                    return d.chief_set.length > 0 ? d.chief_set[0].selectValue : '';
                                }},
                                {field: 'begin_date', title: '开始日期', align: 'center'},
                                {field: 'end_date', title: '结束日期', align: 'center'},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#headmasterOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //计划和总结信息渲染
        function renderPlanInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'EW_EDU_PLAN_TABLE',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'plan')

                        table.render({
                            data: res.data,
                            elem: '#planTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                        let termName = d.data_version_id ? d.term.title : '-';
                                        return d.data_version_name ? d.data_version_name : termName;
                                    }},
                                {field: 'zm_gkk_category', title: '类型', align: 'center', templet: function(d) {
                                        //return d.zm_gkk_category;
                                        switch (d.zm_gkk_category){
                                            case 1:
                                                return '计划';
                                                break;
                                            case 2:
                                                return '总结';
                                                break;
                                            default:
                                                return '-';
                                                break;
                                        }

                                    }},
                                {field: 'creator', title: '创建人', align: 'center', templet: function(d) {
                                        return d.creator ? d.creator.nickname : '-';
                                    }},
                                {field: 'created_at', title: '创建日期', align: 'center'},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#planOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //班级荣誉
        function renderHonorInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "honor": 1,
                'user_id': userId
            };
            return new Promise((resolve) => {
                getAwardsList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.data.total;
                        per_page = res.data.limit;
                        renderPageBar(page, per_page, 'honor')
                        console.log(res.data);
                        table.render({
                            data: res.data.data,
                            elem: '#honorTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.data.limit,
                            skin: 'nob',
                            cols: [[
                                {field: '', title: '学年学期',width:'10%',align:'center',templet: function(d) {
                                        // return (page-1)*res.data.limit+d.LAY_INDEX;
                                        if(d.data_version_name === null){
                                            return '';
                                        }else{
                                            return d.data_version_name;
                                        }
                                    }}
                                ,{field: 'name', title: '名称',width:'10%',align:'center'}
                                ,{field: 'level', title: '年级班级', align: 'center', templet: function(d) {
                                        grade = d.grade_array ? d.grade_array[0].selectValue : '-';
                                        classValue = d.class_item_set ? d.class_item_set[0].selectValue : '';
                                        return grade+classValue;
                                    }}
                                ,{field: '', title: '级别',width:'5%',align:'center',templet: function(d) {
                                        if(d.level_array.length>0){
                                            return d.level_array[0].selectValue;
                                        }else{
                                            return '';
                                        }
                                    }}
                                ,{field: '', title: '状态',width:'10%',align:'center',templet: function(d) {
                                        if(d.status == 'FILL_IN'){
                                            return '未提交';
                                        }else if(d.status == 'REVIEW'){
                                            return '待审核';
                                        }else if(d.status == 'REVIEW_FAIL'){
                                            return '已驳回';
                                        }else if(d.status == 'PASS'){
                                            return '审核通过';
                                        }else{
                                            return '-';
                                        }

                                    }}

                                ,{field: 'nickname', title: '创建人',width:'10%',align:'center'}
                                ,{field: 'created_at', title: '创建日期', align: 'center'}
                                ,{title: '操作', width: '12%', align: 'center', toolbar: '#honorOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //主题活动信息渲染
        function renderThemeInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'EW_THEME_ACTIVITY_TABLE ',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'theme')

                        table.render({
                            data: res.data,
                            elem: '#themeTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                        let termName = d.data_version_id ? d.term.title : '-';
                                        return d.data_version_name ? d.data_version_name : termName;
                                    }},
                                {field: 'name', title: '活动名称', align: 'center'},
                                {field: 'level', title: '年级班级', align: 'center', templet: function(d) {
                                        if(d.grade_array.length > 0 && d.class_item_set.length > 0) {
                                            return d.grade_array[0].selectValue + d.class_item_set[0].selectValue;
                                        }else{
                                            return '-';
                                        }
                                    }},
                                {field: 'begin_date', title: '开始日期', align: 'center'},
                                {field: 'end_date', title: '结束日期', align: 'center'},
                                {field: 'status_name', title: '状态', align: 'center', templet: function(d) {
                                        switch(d.status) {
                                            case 'REVOKE':
                                                return '撤回';
                                                break;
                                            case 'FILL_IN':
                                                return '未提交';
                                                break;
                                            case 'REVIEW':
                                                return '待审核';
                                                break;
                                            case 'REVIEW_FAIL':
                                                return '已驳回';
                                                break;
                                            case 'PASS':
                                                return '审核通过';
                                                break;
                                            default:
                                                return '-';
                                                break;
                                        }
                                    }},
                                {field: 'creator', title: '创建人', align: 'center', templet: function(d) {
                                        return d.creator ? d.creator.nickname : '-';
                                    }},
                                {field: 'created_at', title: '创建日期', align: 'center'},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#themeOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }

        // 开发课程信息渲染
        function renderCoursesInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "limit": limit,
                'user_id': userId
            };
            return new Promise((resolve) => {
                getPlatformCreditList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'courses')

                        table.render({
                            data: res.data,
                            elem: '#coursesTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {type: 'numbers', title: '序号', align: 'center'},
                                {field: 'course_name', title: '课题名称', align: 'center'},
                                {field: 'course_level', title: '课题级别', align: 'center'},
                                {field: 'score', title: '获得学分', align: 'center'},
                                {field: 'get_time', title: '日期', align: 'center'},
                                {field: 'teacher_name', title: '创建人', align: 'center'},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#coursesOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //参与考研信息渲染
        function renderCreditsInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'TEACHERTRAINING_JOINTRAINING_TABLE',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'credits')

                        table.render({
                            data: res.data,
                            elem: '#creditsTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                        let termName = d.data_version_id ? d.term.title : '-';
                                        return d.data_version_name ? d.data_version_name : termName;
                                    }},
                                {field: 'name', title: '教研名称', align: 'center'},
                                {field: 'begin_date', title: '日期', align: 'center'},
                                {field: 'level', title: '级别', align: 'center', templet: function(d) {
                                        return d.level_array.length > 0 ? d.level_array[0].selectValue : '-';
                                    }},
                                {field: 'course', title: '学科', align: 'center', templet: function(d) {
                                        return d.course_set.length > 0 ? d.course_set[0].selectValue : '-';
                                    }},
                                {field: 'grade_name', title: '年级', align: 'center', templet: function(d) {
                                        // return d.grade_array.length > 0 ? d.grade_array[0].selectValue : '-';
                                        let grades = '';
                                        layui.each(d.grade_array, function(index, item) {
                                            grades += item ? item.selectValue + ' ' : '';
                                        });
                                        return grades.trim().replace(/\s/g, ',');
                                    }},
                                // {field: 'compere_name', title: '主持人', align: 'center', templet: function(d) {
                                //     return d.compere.length > 0 && d.compere[0].user ? d.compere[0].user.nickname : '-';
                                // }},
                                {field: 'teacher_name', title: '主持人', align: 'center'},
                                {field: 'creator', title: '创建人', align: 'center', templet: function(d) {
                                        return d.creator ? d.creator.nickname : '-';
                                    }},
                                {field: 'status_name', title: '状态', align: 'center', templet: function(d) {
                                        switch(d.status) {
                                            case 'REVOKE':
                                                return '撤回';
                                                break;
                                            case 'FILL_IN':
                                                return '未提交';
                                                break;
                                            case 'REVIEW':
                                                return '待审核';
                                                break;
                                            case 'REVIEW_FAIL':
                                                return '已驳回';
                                                break;
                                            case 'PASS':
                                                return '审核通过';
                                                break;
                                            default:
                                                return '-';
                                                break;
                                        }
                                    }},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#creditsOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //参与教研信息渲染
        function renderResearchInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'TEACHERTRAINING_JOINTRAINING_TABLE ',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'research')

                        table.render({
                            data: res.data,
                            elem: '#researchTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    let termName = d.data_version_id ? d.term.title : '-';
                                    return d.data_version_name ? d.data_version_name : termName;
                                }},
                                {field: 'name', title: '教研名称', align: 'center'},
                                {field: 'begin_date', title: '日期', align: 'center'},
                                {field: 'level', title: '级别', align: 'center', templet: function(d) {
                                    return d.level_array.length > 0 ? d.level_array[0].selectValue : '-';
                                }},
                                {field: 'course', title: '学科', align: 'center', templet: function(d) {
                                    return d.course_set.length > 0 ? d.course_set[0].selectValue : '-';
                                }},
                                {field: 'grade_name', title: '年级', align: 'center', templet: function(d) {
                                    return d.grade_array.length > 0 ? d.grade_array[0].selectValue : '-';
                                }},
                                {field: 'compere_name', title: '主持人', align: 'center', templet: function(d) {
                                    return d.compere.length > 0 && d.compere[0].user ? d.compere[0].user.nickname : '-';
                                }},
                                {field: 'creator', title: '创建人', align: 'center', templet: function(d) {
                                    return d.creator ? d.creator.nickname : '-';
                                }},
                                {field: 'status_name', title: '状态', align: 'center', templet: function(d) {
                                    switch(d.status) {
                                        case 'REVOKE':
                                            return '撤回';
                                            break;
                                        case 'FILL_IN':
                                            return '未提交';
                                            break;
                                        case 'REVIEW':
                                            return '待审核';
                                            break;
                                        case 'REVIEW_FAIL':
                                            return '已驳回';
                                            break;
                                        case 'PASS':
                                            return '审核通过';
                                            break;
                                        default:
                                            return '-';
                                            break;
                                    }
                                }},
                                {title: '操作', width: '20%', align: 'center', toolbar: '#researchOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //外出培训信息渲染
        function renderOutrainingInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'TEACHERTRAINING_OUTTRAINING_TABLE ',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'outraining')

                        table.render({
                            data: res.data,
                            elem: '#outrainingTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    let termName = d.data_version_id ? d.term.title : '-';
                                    return d.data_version_name ? d.data_version_name : termName;
                                }},
                                {field: 'name', title: '名称', align: 'center'},
                                {field: 'begin_date', title: '开始日期', align: 'center'},
                                {field: 'end_date', title: '结束日期', align: 'center'},
                                {field: 'level', title: '级别', align: 'center', templet: function(d) {
                                    return d.level_array.length > 0 ? d.level_array[0].selectValue : '-';
                                }},
                                {field: 'compere_name', title: '主持人', align: 'center', templet: function(d) {
                                    if(d.compere.length > 0) {
                                        let pere = '';
                                        let l = d.compere.length - 1;
                                        layui.each(d.compere, function(i, item) {
                                            let nn = item.user ? item.user.nickname : '';
                                            if(nn) {
                                                if(i >= l) {
                                                    pere += nn;
                                                } else {
                                                    pere += nn + ', ';
                                                }
                                            }
                                        });
                                        return pere;
                                    } else {
                                        return '-';
                                    }
                                }},
                                {field: 'status_name', title: '状态', align: 'center', templet: function(d) {
                                    switch(d.status) {
                                        case 'REVOKE':
                                            return '撤回';
                                            break;
                                        case 'FILL_IN':
                                            return '未提交';
                                            break;
                                        case 'REVIEW':
                                            return '待审核';
                                            break;
                                        case 'REVIEW_FAIL':
                                            return '已驳回';
                                            break;
                                        case 'PASS':
                                            return '审核通过';
                                            break;
                                        default:
                                            return '-';
                                            break;
                                    }
                                }},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#outrainingOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //其他培训信息渲染
        function renderOtherInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'TEACHERTRAINING_OTHER_TABLE ',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'other')

                        table.render({
                            data: res.data,
                            elem: '#otherTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    let termName = d.data_version_id ? d.term.title : '-';
                                    return d.data_version_name ? d.data_version_name : termName;
                                }},
                                {field: 'name', title: '名称', align: 'center'},
                                {field: 'begin_date', title: '开始日期', align: 'center'},
                                {field: 'end_date', title: '结束日期', align: 'center'},

                                {field: 'level', title: '级别', align: 'center', templet: function(d) {
                                    return d.level_array.length > 0 ? d.level_array[0].selectValue : '-';
                                }},

                                {field: 'compere_name', title: '主持人', align: 'center', templet: function(d) {
                                    if(d.compere.length > 0) {
                                        let pere = '';
                                        let l = d.compere.length - 1;
                                        layui.each(d.compere, function(i, item) {
                                            let nn = item.user ? item.user.nickname : '';
                                            if(nn) {
                                                if(i >= l) {
                                                    pere += nn;
                                                } else {
                                                    pere += nn + ', ';
                                                }
                                            }
                                        });
                                        return pere;
                                    } else {
                                        return '-';
                                    }
                                }},
                                {field: 'status_name', title: '状态', align: 'center', templet: function(d) {
                                    switch(d.status) {
                                        case 'REVOKE':
                                            return '撤回';
                                            break;
                                        case 'FILL_IN':
                                            return '未提交';
                                            break;
                                        case 'REVIEW':
                                            return '待审核';
                                            break;
                                        case 'REVIEW_FAIL':
                                            return '已驳回';
                                            break;
                                        case 'PASS':
                                            return '审核通过';
                                            break;
                                        default:
                                            return '-';
                                            break;
                                    }
                                }},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#otherOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }

        // 获奖情况信息渲染
        function renderAwardInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'TEACHER_AWARD_TABLE ',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'award')

                        table.render({
                            data: res.data,
                            elem: '#awardTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    let termName = d.data_version_id ? d.term.title : '-';
                                    return d.data_version_name ? d.data_version_name : termName;
                                }},
                                {field: '', title: '类型', align: 'center', templet: function(d) {
                                    if(d.category_array.length>0){
                                        return d.category_array[0].selectValue;
                                    }else{
                                        return '';
                                    }
                                }},
                                {field: 'name', title: '名称', align: 'center'},
                                {field: 'begin_date', title: '开始日期', align: 'center'},
                                {field: 'end_date', title: '结束日期', align: 'center'},
                                {field: '', title: '级别', align: 'center',templet: function(d) {
                                    if(d.level_array.length>0){
                                        return d.level_array[0].selectValue;
                                    }else{
                                        return '';
                                    }
                                }},
                                {field: '', title: '等级', align: 'center', templet: function(d) {
                                        if(d.grade_array.length>0){
                                            return d.grade_array[0].selectValue;
                                        }else{
                                            return '';
                                        }
                                }},
                                {field: '', title: '状态', align: 'center', templet: function(d) {
                                        if(d.status == 'FILL_IN'){
                                            return '未提交';
                                        }else if(d.status == 'REVIEW'){
                                            return '待审核';
                                        }else if(d.status == 'REVIEW_FAIL'){
                                            return '已驳回';
                                        }else if(d.status == 'PASS'){
                                            return '审核通过';
                                        }else{
                                            return '-';
                                        }
                                }},
                                {field: 'creator', title: '创建人', align: 'center', templet: function(d) {
                                    return d.creator ? d.creator.nickname : '-';
                                }},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#wardsOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }

        // 带教情况信息渲染
        function renderTeachworkInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'IMPORTANTWORK_TEACHING_SITUATION_TABLE ',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getActivityList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.total;
                        per_page = res.limit;
                        renderPageBar(page, per_page, 'teachwork')

                        table.render({
                            data: res.data,
                            elem: '#teachworkTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    let termName = d.data_version_id ? d.term.title : '-';
                                    return d.data_version_name ? d.data_version_name : termName;
                                }},
                                {field: 'name', title: '活动名称', align: 'center'},
                                {field: 'begin_date', title: '开始日期', align: 'center'},
                                {field: 'end_date', title: '结束日期', align: 'center'},
                                {field: 'teacher_name', title: '带教教师', align: 'center'},
                                {field: 'school_name', title: '所在学校', align: 'center'},
                                {field: '', title: '级别', align:'center',templet: function(d) {
                                    if(d.level_array.length>0){
                                        return d.level_array[0].selectValue;
                                    }else{
                                        return '';
                                    }
                                }},
                                {field: '', title: '状态', align: 'center', templet: function(d) {
                                    if(d.status == 'FILL_IN'){
                                        return '未提交';
                                    }else if(d.status == 'REVIEW'){
                                        return '待审核';
                                    }else if(d.status == 'REVIEW_FAIL'){
                                        return '已驳回';
                                    }else if(d.status == 'PASS'){
                                        return '审核通过';
                                    }else{
                                        return '-';
                                    }
                                }},
                                {field: 'creator', title: '创建人', align: 'center', templet: function(d) {
                                    return d.creator ? d.creator.nickname : '-';
                                }},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#workOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //校内工作信息渲染
        function renderInworkInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'IMPORTANTWORK_IN_SCHOOL_TABLE ',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getInWorkList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.data.total;
                        per_page = res.data.limit;
                        renderPageBar(page, per_page, 'inwork')

                        table.render({
                            data: res.data.data,
                            elem: '#inworkTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                    let termName = d.data_version_id ? d.term.title : '-';
                                    return d.data_version_name ? d.data_version_name : termName;
                                }},
                                {field: 'name', title: '学校重要工作', align: 'center'},
                                {field: 'date', title: '日期', align: 'center'},
                                {field: 'compere', title: '主持人',width:'15%',align:'center'},
                                {field: '', title: '参与人', align: 'center', templet: function(d) {
                                    return d.participants.length;
                                }},
                                {field: '', title: '状态', align: 'center', templet: function(d) {
                                    if(d.status == 'FILL_IN'){
                                        return '未提交';
                                    }else if(d.status == 'REVIEW'){
                                        return '待审核';
                                    }else if(d.status == 'REVIEW_FAIL'){
                                        return '已驳回';
                                    }else if(d.status == 'PASS'){
                                        return '审核通过';
                                    }else{
                                        return '-';
                                    }
                                }},
                                {field: 'nickname', title: '创建人',width:'10%',align:'center'},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#inworkOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        //校外工作信息渲染
        function renderOutworkInfo(page = 1, limit = per_page) {
            var para = {
                "page": page,
                "search": {data_version_id: termId},
                "limit": limit,
                "form_key": 'IMPORTANTWORK_OUT_SCHOOL_TABLE ',
                'user_id': userId
            };
            return new Promise((resolve) => {
                getOutWorkList(para, function(res){
                    if(res.code === 1) {
                        totalNum = res.data.total;
                        per_page = res.data.limit;
                        renderPageBar(page, per_page, 'outwork')

                        table.render({
                            data: res.data.data,
                            elem: '#outworkTable',
                            cellMinWidth: 80, //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                            limit: res.data.limit,
                            skin: 'nob',
                            cols: [[
                                {field: 'term_name', title: '学年学期', align: 'left', templet: function(d) {
                                        let termName = d.data_version_id ? d.term.title : '-';
                                        return d.data_version_name ? d.data_version_name : termName;
                                    }},
                                {field: 'name', title: '工作内容摘要', align: 'center'},
                                {field: 'date', title: '日期', align: 'center'},
                                {field: 'compere', title: '主持人',width:'10%',align:'center'},
                                {field: '', title: '参与人',width:'10%',align:'center',templet: function(d) {
                                        return d.participants.length;
                                    }},
                                {field: '', title: '状态', align: 'center', templet: function(d) {
                                        if(d.status == 'FILL_IN'){
                                            return '未提交';
                                        }else if(d.status == 'REVIEW'){
                                            return '待审核';
                                        }else if(d.status == 'REVIEW_FAIL'){
                                            return '已驳回';
                                        }else if(d.status == 'PASS'){
                                            return '审核通过';
                                        }else{
                                            return '-';
                                        }
                                    }},
                                {field: 'nickname', title: '创建人',width:'10%',align:'center'},
                                {title: '操作', width: '12%', align: 'center', toolbar: '#outworkOpList', fixed:'right'}
                            ]],
                            page: false,
                            loading: true
                        });

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }

        // 岗位竞聘信息渲染
        function renderJobCompetitionInfo() {
            return new Promise((resolve) => {
                getJobCompetitionInfo({user_id: userId, data_version_id: termId}, function(res){
                    if(res.code === 1) {
                        let ApplyJob = res.data;

                        if(!ApplyJob) {
                            layer.msg("当前学期没有数据！", {time: 2000, icon: 5});
                            return false;
                        }

                        job_id = ApplyJob.job_id;
                        scale_id = ApplyJob.jobs.scale_id;

                        resolve();
                    } else {
                        layer.msg(res.msg, {time: 2000, icon: 5});
                    }
                });
            });
        }
        function renderJobCompetitionPage() {
            return new Promise((resolve) => {
                getJobApplyFirst({'job_id':job_id, user_id: userId},function(res){
                    if(res.code == 1){
                        form.val("formTest", {
                            'data_version_name': res.data.data_version_name,
                            'name': res.data.name,
                            'join_job_date': res.data.join_job_date,
                            'old_level_name': res.data.old_level_name,
                            'engage_date': res.data.engage_date,
                            'apply_level_name': res.data.apply_level_name,
                            'subject': res.data.subject,
                            'job_id': res.data.job_id,
                            'data_version_id': res.data.data_version_id,
                            'old_level': res.data.old_level,
                            'apply_level': res.data.apply_level,
                            'user_id': res.data.user_id,
                            'education': res.data.education,
                            'education_name': res.data.education_name,
                            'teaching_age': res.data.teaching_age,
                            'engage_age': res.data.engage_age,
                            'id': res.data.id,

                        });
                        job_apply_id = res.data.id;
                        $('#textarea').html(res.data.remark);
                        form.val("formTest2", {
                            'training': res.data.training,
                            'scores[1]': res.data.job_apply_details[1].scores,
                            'scores[2]': res.data.job_apply_details[2].scores,
                            'scores[3]': res.data.job_apply_details[3].scores,
                            'scores[4]': res.data.job_apply_details[4].scores,
                            'comment[1]': res.data.job_apply_details[1].comment,
                            'comment[2]': res.data.job_apply_details[2].comment,
                            'comment[3]': res.data.job_apply_details[3].comment,
                            'comment[4]': res.data.job_apply_details[4].comment,
                        });

                        $('#xlsp').text(res.data.education_name);
                        $('#jl').text(res.data.teaching_age+'年');
                        $('#prnx').text(res.data.engage_age+'年');

                        resolve();
                    }else{
                        layer.msg(res.msg, {icon: 5,shift : 6,time: 3000});
                    }
                });
            });
        }
        // Tab1 切换
        element.on('tab(docDemoTabBrief)', function(){
            job_lay_pid = this.getAttribute('lay-id');
            if(job_lay_pid == 2){
                get_job_scaleList(job_lay_id, scale_id);
            }
        });
        // Tab2 切换
        element.on('tab(docDemoTabBrief2)', function(){
            job_lay_id = this.getAttribute('lay-id');
            get_job_scaleList(job_lay_id, scale_id);
        });

        //渲染发展性项目
        function get_job_scaleList(job_lay_id, scale_id){
            getJobScaleList({'scale_index':job_lay_id,'scale_id':scale_id,'job_apply_id':job_apply_id},function(res){
                if(res.code == 1){
                    if(job_lay_id == 1){
                        //获奖情况
                        var getTpl = tab2_1.innerHTML
                        ,view = document.getElementById('view-tab2-1');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(job_lay_id == 2){
                        //科教研
                        var getTpl = tab2_2.innerHTML
                        ,view = document.getElementById('view-tab2-2');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(job_lay_id == 4){
                        //兼职工作
                        var getTpl = tab2_4.innerHTML
                        ,view = document.getElementById('view-tab2-4');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(job_lay_id == 5){
                        //公开教学
                        var getTpl = tab2_5.innerHTML
                        ,view = document.getElementById('view-tab2-5');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(job_lay_id == 6){
                        //辅导学生获奖
                        var getTpl = tab2_6.innerHTML
                        ,view = document.getElementById('view-tab2-6');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(job_lay_id == 7){
                        //带教情况
                        var getTpl = tab2_7.innerHTML
                        ,view = document.getElementById('view-tab2-7');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(job_lay_id == 8){
                        //其他发展项目
                        var getTpl = tab2_8.innerHTML
                        ,view = document.getElementById('view-tab2-8');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(job_lay_id == 9){
                        //重要工作贡献
                        var getTpl = tab2_9.innerHTML
                        ,view = document.getElementById('view-tab2-9');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }
                }
            })
        }

        // 渲染页面
        function renderPageBar(page, limit, pageType = '') {
            laypage.render({
                elem: pageType+'PageBar',
                count: totalNum, //数据总数，从服务端得到
                curr: page,
                first: '第一页',
                last: '最后一页',
                limit: limit,
                layout: ['limit','count', 'prev', 'page', 'next', 'skip'],
                jump: function(obj, first) {
                    //首次不执行
                    if(!first) {
                        layer.closeAll();
                        switch (pageType) {
                            case 'discipline': renderDisciplineInfo(obj.curr, obj.limit); break;
                            case 'open': renderOpenInfo(obj.curr, obj.limit); break;
                            case 'experience': renderExperienceInfo(obj.curr, obj.limit); break;
                            case 'study': renderStudyInfo(obj.curr, obj.limit); break;
                            case 'paper': renderPaperInfo(obj.curr, obj.limit); break;
                            case 'treatise': renderTreatiseInfo(obj.curr, obj.limit); break;
                            case 'subject': renderSubjectInfo(obj.curr, obj.limit); break;
                            case 'activity': renderActivityInfo(obj.curr, obj.limit); break;
                            case 'live': renderLiveInfo(obj.curr, obj.limit); break;
                            case 'headmaster': renderHeadmasterInfo(obj.curr, obj.limit); break;
                            case 'practice': renderPracticeInfo(obj.curr, obj.limit); break;
                            case 'theme': renderThemeInfo(obj.curr, obj.limit); break;
                            case 'courses': renderCoursesInfo(obj.curr, obj.limit); break;
                            case 'credits': renderCreditsInfo(obj.curr, obj.limit); break;
                            case 'research': renderResearchInfo(obj.curr, obj.limit); break;
                            case 'outraining': renderOutrainingInfo(obj.curr, obj.limit); break;
                            case 'other': renderOtherInfo(obj.curr, obj.limit); break;
                            case 'award': renderAwardInfo(obj.curr, obj.limit); break;
                            case 'teachwork': renderTeachworkInfo(obj.curr, obj.limit); break;
                            case 'inwork': renderInworkInfo(obj.curr, obj.limit); break;
                            case 'outwork': renderOutworkInfo(obj.curr, obj.limit); break;
                            default: renderDisciplineInfo(obj.curr, obj.limit);
                        }
                    }
                }
            });
        }

        // 学期筛选监听
        form.on('select(termTabList)', function(data){
            // console.log(data.elem); //得到select原始DOM对象
            // console.log(data.value); //得到被选中的值
            // console.log(data.othis); //得到美化后的DOM对象

            termId = data.value;
            console.log(tabId)
            switch (tabId) {
                case '2': renderTeachingInfo(); break;
                case '3': renderActivityInfo(); break;
                case '4': renderEducationInfo(); break;
                case '5': renderFacultyInfo(); break;
                case '6': renderAwardInfo(page = 1, limit = per_page); break;
                case '7': renderWorkInfo(); break;
                case '8': renderAssessManageInfo(); break;
                default: toPageInit();
            }
        });

        //表格头工具栏事件
        table.on('toolbar(positionTable)', function(obj){
            switch(obj.event){
                case 'add':
                    layer.ready(function() {
                        var index = layer.load(2);

                        form.val('positionForm', {"id": 0,"user_id": userId});

                        layer.open({
                            type: 1,
                            title: '新增',
                            content: $('#position-item'),
                            area: ['560px', '420px'],
                            cancel: function() {
                                //右上角关闭回调
                                $('#position-item').hide();
                                $('#positionForm')[0].reset()
                                //return false 开启该代码可禁止点击该按钮关闭
                            }
                        });
                        layer.close(index);

                    });
                break;
            };
        });
        table.on('toolbar(learnHistoryTable)', function(obj){
            switch(obj.event){
                case 'add':
                    layer.ready(function() {
                        var index = layer.load(2);

                        form.val('learnHistoryForm', {"id": 0,"user_id": userId});

                        layer.open({
                            type: 1,
                            title: '新增',
                            content: $('#learn-history-item'),
                            area: ['560px', '420px'],
                            cancel: function() {
                                //右上角关闭回调
                                $('#learn-history-item').hide();
                                $('#learnHistoryForm')[0].reset()
                                //return false 开启该代码可禁止点击该按钮关闭
                            }
                        });
                        layer.close(index);
                    });
                break;
            };
        });
        table.on('toolbar(workHistoryTable)', function(obj){
            switch(obj.event){
                case 'add':
                    layer.ready(function() {
                        var index = layer.load(2);

                        form.val('workHistoryForm', {"id": 0,"user_id": userId});

                        layer.open({
                            type: 1,
                            title: '新增',
                            content: $('#work-history-item'),
                            area: ['560px', '420px'],
                            cancel: function() {
                                //右上角关闭回调
                                $('#work-history-item').hide();
                                $('#workHistoryForm')[0].reset()
                                //return false 开启该代码可禁止点击该按钮关闭
                            }
                        });
                        layer.close(index);
                    });
                break;
            };
        });
        table.on('toolbar(assessmentTable)', function(obj){
            switch(obj.event){
                case 'add':
                    layer.ready(function() {
                        var index = layer.load(2);

                        form.val('assessmentForm', {
                            "id": 0,
                            "user_id": userId,
                            "year": new Date().format("yyyy"),
                        });

                        layer.open({
                            type: 1,
                            title: '新增',
                            content: $('#assessment-item'),
                            area: ['560px', '420px'],
                            cancel: function() {
                                //右上角关闭回调
                                $('#assessment-item').hide();
                                $('#assessmentForm')[0].reset()
                                //return false 开启该代码可禁止点击该按钮关闭
                            }
                        });
                        layer.close(index);
                    });
                break;
            };
        });

        //监听行工具事件
        table.on('tool(positionTable)', function(obj){
            var data = obj.data;
            console.log(data);
            if(obj.event === 'del'){
                layer.confirm('确定删除吗?', function(index){
                    delPosition({id: data.id}, function(res) {
                        if (res.code == '9') {
                            layer.msg(res.msg, {icon: 5, shift: 6});
                        } else {
                            layer.msg('删除成功', {icon: 6,time: 1000},function(){
                                obj.del();
                                layer.close(index);
                            });
                        }
                    });
                });
            } else if(obj.event === 'edit') {
                layer.ready(function() {
                    var index = layer.load(2);

                    form.val('positionForm', {
                        "id": data.id,
                        "user_id": userId,
                        "data_version_id": data.data_version_id,
                        "title": data.title_set[0].optionId,
                        "begin_date": data.begin_date,
                        "end_date": data.end_date
                    });

                    layer.open({
                        type: 1,
                        title: '编辑',
                        content: $('#position-item'),
                        area: ['560px', '420px'],
                        cancel: function() {
                            //右上角关闭回调
                            $('#position-item').hide();
                            $('#positionForm')[0].reset()
                            //return false 开启该代码可禁止点击该按钮关闭
                        }
                    });
                    layer.close(index);
                });
            }
        });
        table.on('tool(learnHistoryTable)', function(obj){
            var data = obj.data;

            console.log(data);
            if(obj.event === 'del'){
                layer.confirm('确定删除吗?', function(index){
                    delLearnHistory({id: data.id}, function(res) {
                        if (res.code == '9') {
                            layer.msg(res.msg, {icon: 5, shift: 6});
                        } else {
                            layer.msg('删除成功', {icon: 6,time: 1000},function(){
                                obj.del();
                                layer.close(index);
                            });
                        }
                    });
                });
            } else if(obj.event === 'edit') {
                layer.ready(function() {
                        var index = layer.load(2);

                        form.val('learnHistoryForm', {
                            "id": data.id,
                            "user_id": userId,
                            "name": data.name,
                            "begin_time": data.begin_time,
                            "end_time": data.end_time,
                            "certifier": data.certifier
                        });

                        layer.open({
                            type: 1,
                            title: '编辑',
                            content: $('#learn-history-item'),
                            area: ['560px', '420px'],
                            cancel: function() {
                                //右上角关闭回调
                                $('#learn-history-item').hide();
                                $('#learnHistoryForm')[0].reset()
                                //return false 开启该代码可禁止点击该按钮关闭
                            }
                        });
                        layer.close(index);
                    });
            }
        });
        table.on('tool(workHistoryTable)', function(obj){
            var data = obj.data;
            console.log(data);

            if(obj.event === 'del'){
                layer.confirm('确定删除吗?', function(index){
                    delWorkHistory({id: data.id}, function(res) {
                        if (res.code == '9') {
                            layer.msg(res.msg, {icon: 5, shift: 6});
                        } else {
                            layer.msg('删除成功', {icon: 6,time: 1000},function(){
                                obj.del();
                                layer.close(index);
                            });
                        }
                    });
                });
            } else if(obj.event === 'edit') {
                layer.ready(function() {
                    var index = layer.load(2);

                    form.val('workHistoryForm', {
                        "id": data.id,
                        "user_id": userId,
                        "name": data.name,
                        "begin_time": data.begin_time,
                        "end_time": data.end_time
                    });

                    layer.open({
                        type: 1,
                        title: '编辑',
                        content: $('#work-history-item'),
                        area: ['560px', '420px'],
                        cancel: function() {
                            //右上角关闭回调
                            $('#work-history-item').hide();
                            $('#workHistoryForm')[0].reset()
                            //return false 开启该代码可禁止点击该按钮关闭
                        }
                    });
                    layer.close(index);
                });
            }
        });
        table.on('tool(assessmentTable)', function(obj){
            var data = obj.data;

            if(obj.event === 'del'){
                layer.confirm('确定删除吗?', function(index){
                    delAssessment({id: data.id}, function(res) {
                        if (res.code == '9') {
                            layer.msg(res.msg, {icon: 5, shift: 6});
                        } else {
                            layer.msg('删除成功', {icon: 6,time: 1000},function(){
                                obj.del();
                                layer.close(index);
                            });
                        }
                    });
                });
            } else if(obj.event === 'edit') {
                layer.ready(function() {
                        var index = layer.load(2);

                        form.val('assessmentForm', {
                            "id": data.id,
                            "user_id": userId,
                            "year": new Date(data.year).format("yyyy"),
                            "situation": data.situation_set[0].optionId
                        });

                        layer.open({
                            type: 1,
                            title: '编辑',
                            content: $('#assessment-item'),
                            area: ['560px', '420px'],
                            cancel: function() {
                                //右上角关闭回调
                                $('#assessment-item').hide();
                                $('#assessmentForm')[0].reset()
                                //return false 开启该代码可禁止点击该按钮关闭
                            }
                        });
                        layer.close(index);
                    });
            }
        });

        //表单提交
        form.on('submit(positionSub)', function(data){
            let d = data.field;

            if(d.id == "0") {
                addPosition(d, function(res){
                    if(res.code == '1'){
                        layer.msg(res.msg,{icon: 6,time: 1000}, function() {
                            $('#positionForm')[0].reset();
                            layer.closeAll();
                            renderPageInit2();
                        });
                    }else{
                        layer.msg(res.msg, {icon: 5,shift : 6});
                    }
                });
            } else {
                editPosition(d, function(res){
                    if(res.code == '1'){
                        layer.msg(res.msg,{icon: 6,time: 1000}, function() {
                            $('#positionForm')[0].reset();
                            layer.closeAll();
                            renderPageInit2();
                        });
                    }else{
                        layer.msg(res.msg, {icon: 5,shift : 6});
                    }
                });
            }

            return false;
        });
        form.on('submit(learnSub)', function(data){
            let d = data.field;

            if(d.id == "0") {
                addLearnHistory(d, function(res){
                    if(res.code == '1'){
                        layer.msg(res.msg,{icon: 6,time: 1000}, function() {
                            $('#learnHistoryForm')[0].reset();
                            layer.closeAll();
                            renderPageInit2();
                        });
                    }else{
                        layer.msg(res.msg, {icon: 5,shift : 6});
                    }
                });
            } else {
                editLearnHistory(d, function(res){
                    if(res.code == '1'){
                        layer.msg(res.msg,{icon: 6,time: 1000}, function() {
                            $('#learnHistoryForm')[0].reset();
                            layer.closeAll();
                            renderPageInit2();
                        });
                    }else{
                        layer.msg(res.msg, {icon: 5,shift : 6});
                    }
                });
            }

            return false;
        });
        form.on('submit(workSub)', function(data){
            let d = data.field;

            if(d.id == "0") {
                addWorkHistory(d, function(res){
                    if(res.code == '1'){
                        layer.msg(res.msg,{icon: 6,time: 1000}, function() {
                            $('#workHistoryForm')[0].reset();
                            layer.closeAll();
                            renderPageInit2();
                        });
                    }else{
                        layer.msg(res.msg, {icon: 5,shift : 6});
                    }
                });
            } else {
                editWorkHistory(d, function(res){
                    if(res.code == '1'){
                        layer.msg(res.msg,{icon: 6,time: 1000}, function() {
                            $('#workHistoryForm')[0].reset();
                            layer.closeAll();
                            renderPageInit2();
                        });
                    }else{
                        layer.msg(res.msg, {icon: 5,shift : 6});
                    }
                });
            }

            return false;
        });
        form.on('submit(assessmentSub)', function(data){
            let d = data.field;

            if(d.id == "0") {
                addAssessment(d, function(res){
                    if(res.code == '1'){
                        layer.msg(res.msg,{icon: 6,time: 1000}, function() {
                            $('#assessmentForm')[0].reset();
                            layer.closeAll();
                            refreshPage();
                        });
                    }else{
                        layer.msg(res.msg, {icon: 5,shift : 6});
                    }
                });
            } else {
                editAssessment(d, function(res){
                    if(res.code == '1'){
                        layer.msg(res.msg,{icon: 6,time: 1000}, function() {
                            $('#assessmentForm')[0].reset();
                            layer.closeAll();
                            refreshPage();
                        });
                    }else{
                        layer.msg(res.msg, {icon: 5,shift : 6});
                    }
                });
            }

            return false;
        });

        //表单监听数据变动触发事件,输入框的值改变时触发
        $("#name-input").on("change",function(e){
            let subData = {};
            subData.tab_id = basicTabId;
            subData.user_id = userId;
            subData.data_type = 1;
            subData.field = "name";
            subData.field_name = "姓名";
            subData.change_value = e.delegateTarget.value;
            subData.update_value = e.delegateTarget.value;
            subData.iszc = false;

            let originValue = Base.name;
            if(originValue) {
                subData.type = 2;
            } else {
                subData.type = 1;
            }
            subData.origin_value = originValue;

            toSubBasicInfo(subData);
        });
        $("#id-no-input").on("change",function(e){
            let subData = {};
            subData.tab_id = basicTabId;
            subData.user_id = userId;
            subData.data_type = 1;
            subData.field = "id_no";
            subData.field_name = "身份证号";
            subData.change_value = e.delegateTarget.value;
            subData.update_value = e.delegateTarget.value;
            subData.iszc = false;

            let originValue = Base.id_no;
            if(originValue) {
                subData.type = 2;
            } else {
                subData.type = 1;
            }
            subData.origin_value = originValue;

            toSubBasicInfo(subData);
        });
        $("#mobile-input").on("change",function(e){
            let subData = {};
            subData.tab_id = basicTabId;
            subData.user_id = userId;
            subData.data_type = 1;
            subData.field = "mobile";
            subData.field_name = "移动电话";
            subData.change_value = e.delegateTarget.value;
            subData.update_value = e.delegateTarget.value;
            subData.iszc = false;

            let originValue = Base.mobile;
            if(originValue) {
                subData.type = 2;
            } else {
                subData.type = 1;
            }
            subData.origin_value = originValue;

            toSubBasicInfo(subData);
        });
        $("#phone-input").on("change",function(e){
            let subData = {};
            subData.tab_id = basicTabId;
            subData.user_id = userId;
            subData.data_type = 1;
            subData.field = "phone_num";
            subData.field_name = "家庭电话";
            subData.change_value = e.delegateTarget.value;
            subData.update_value = e.delegateTarget.value;
            subData.iszc = false;

            let originValue = Base.phone_num;
            if(originValue) {
                subData.type = 2;
            } else {
                subData.type = 1;
            }
            subData.origin_value = originValue;

            toSubBasicInfo(subData);
        });
        $("#certificate-no-input").on("change",function(e){
            let subData = {};
            subData.tab_id = basicTabId;
            subData.user_id = userId;
            subData.data_type = 1;
            subData.field = "teacher_certificate_no";
            subData.field_name = "教师资格证号";
            subData.change_value = e.delegateTarget.value;
            subData.update_value = e.delegateTarget.value;
            subData.iszc = false;

            let originValue = Base.teacher_certificate_no;
            if(originValue) {
                subData.type = 2;
            } else {
                subData.type = 1;
            }
            subData.origin_value = originValue;

            toSubBasicInfo(subData);
        });
        $("#teacher-no-input").on("change",function(e){
            let subData = {};
            subData.tab_id = basicTabId;
            subData.user_id = userId;
            subData.data_type = 1;
            subData.field = "teacher_no";
            subData.field_name = "师训号";
            subData.change_value = e.delegateTarget.value;
            subData.update_value = e.delegateTarget.value;
            subData.iszc = false;

            let originValue = Base.teacher_no;
            if(originValue) {
                subData.type = 2;
            } else {
                subData.type = 1;
            }
            subData.origin_value = originValue;

            toSubBasicInfo(subData);
        });
        $("#email-input").on("change",function(e){
            let subData = {};
            subData.tab_id = basicTabId;
            subData.user_id = userId;
            subData.data_type = 1;
            subData.field = "email";
            subData.field_name = "电子邮箱";
            subData.change_value = e.delegateTarget.value;
            subData.update_value = e.delegateTarget.value;
            subData.iszc = false;

            let originValue = Base.email;
            if(originValue) {
                subData.type = 2;
            } else {
                subData.type = 1;
            }
            subData.origin_value = originValue;

            toSubBasicInfo(subData);
        });
        $("#graduated-school-input").on("change",function(e){
            let subData = {};
            subData.tab_id = basicTabId;
            subData.user_id = userId;
            subData.data_type = 1;
            subData.field = "graduated_school";
            subData.field_name = "毕业院校";
            subData.change_value = e.delegateTarget.value;
            subData.update_value = e.delegateTarget.value;
            subData.iszc = false;

            let originValue = School ? School.graduated_school : null;
            if(originValue) {
                subData.type = 2;
            } else {
                subData.type = 1;
            }
            subData.origin_value = originValue;

            toSubBasicInfo(subData);
        });
        $("#census-postcode-input").on("change",function(e){
            let subData = {};
            subData.tab_id = basicTabId;
            subData.user_id = userId;
            subData.data_type = 1;
            subData.field = "census_postcode";
            subData.field_name = "邮编地址";
            subData.change_value = e.delegateTarget.value;
            subData.update_value = e.delegateTarget.value;
            subData.iszc = false;

            let originValue = Address ? Address.census_postcode : null;
            if(originValue) {
                subData.type = 2;
            } else {
                subData.type = 1;
            }
            subData.origin_value = originValue;

            toSubBasicInfo(subData);
        });
        $("#census-address-input").on("change",function(e){
            let subData = {};
            subData.tab_id = basicTabId;
            subData.user_id = userId;
            subData.data_type = 1;
            subData.field = "census_address";
            subData.field_name = "户籍详细地址";
            subData.change_value = e.delegateTarget.value;
            subData.update_value = e.delegateTarget.value;
            subData.iszc = false;

            let originValue = Address ? Address.census_address : null;
            if(originValue) {
                subData.type = 2;
            } else {
                subData.type = 1;
            }
            subData.origin_value = originValue;

            toSubBasicInfo(subData);
        });
        $("#home-postcode-input").on("change",function(e){
            let subData = {};
            subData.tab_id = basicTabId;
            subData.user_id = userId;
            subData.data_type = 1;
            subData.field = "home_postcode";
            subData.field_name = "邮编";
            subData.change_value = e.delegateTarget.value;
            subData.update_value = e.delegateTarget.value;
            subData.iszc = false;

            let originValue = Address ? Address.home_postcode : null;
            if(originValue) {
                subData.type = 2;
            } else {
                subData.type = 1;
            }
            subData.origin_value = originValue;

            toSubBasicInfo(subData);
        });
        $("#home-address-input").on("change",function(e){
            let subData = {};
            subData.tab_id = basicTabId;
            subData.user_id = userId;
            subData.data_type = 1;
            subData.field = "home_address";
            subData.field_name = "家庭详细地址";
            subData.change_value = e.delegateTarget.value;
            subData.update_value = e.delegateTarget.value;
            subData.iszc = false;

            let originValue = Address ? Address.home_address : null;
            if(originValue) {
                subData.type = 2;
            } else {
                subData.type = 1;
            }
            subData.origin_value = originValue;

            toSubBasicInfo(subData);
        });

        form.on('select', function (data) {
            let e = data.elem;
            // console.log(e, e.name); //得到select原始DOM对象
            // console.log(data.value); //得到被选中的值
            // console.log(data.othis); //得到美化后的DOM对象
            var text = e[e.selectedIndex].text;

            let subData = {};
            subData.data_type = 2;
            subData.tab_id = basicTabId;
            subData.user_id = userId;
            subData.field = e.name;
            subData.change_value = text;
            subData.update_value = data.value;
            subData.field_name = "";
            subData.iszc = false;

            let originValue = "";
            switch(e.name) {
                case 'gender':
                    subData.field_name = "性别";

                    originValue = Base.gender;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;
                    break;
                case 'nation':
                    subData.field_name = "民族";

                    originValue = Base.nation;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;
                    break;
                case 'political':
                    subData.field_name = "政治面貌";

                    originValue = Base.political;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;
                    break;
                case 'major_subject':
                    subData.field_name = "主学科";

                    originValue = Base.major_subject;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;
                    break;
                case 'academic':
                    subData.field_name = "学历";

                    originValue = School ? School.academic : null;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;
                    break;
                case 'degree':
                    subData.field_name = "学位";

                    originValue = School ? School.degree : null;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;
                    break;
                case 'tea_title':
                    subData.field_name = "教师职称";
                    subData.iszc = true;

                    originValue = TitleInfo ? TitleInfo.tea_title : null;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;
                    break;
                case 'tea_title_rank':
                    subData.field_name = "岗位等级";
                    subData.iszc = true;

                    originValue = TitleInfo ? TitleInfo.tea_title_rank : null;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;
                    break;
                case 'manage_title':
                    subData.field_name = "管理岗位职称";
                    subData.iszc = true;

                    originValue = TitleInfo ? TitleInfo.manage_title : null;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;
                    break;
                case 'manage_title_rank':
                    subData.field_name = "管理岗位等级";
                    subData.iszc = true;

                    originValue = TitleInfo ? TitleInfo.manage_title_rank : null;
                    if(originValue) {
                        subData.type = 2;
                    } else {
                        subData.type = 1;
                    }
                    subData.origin_value = originValue;
                    break;
                default:
                    break;
            }

            if(subData.field_name) {
                toSubBasicInfo(subData);
            }
        });

        function toSubBasicInfo(d){
            let opt = d.type == 1 ? "新增" : "更新";
            let confirmMsg = '确定' + opt + ' ' + d.field_name + ' 信息为: ' + d.change_value + ' 吗？'
            // if(!d.iszc) {
            //     confirmMsg += '管理审核之后才会修改对应数据项值！';
            // }

            layer.confirm(confirmMsg, function(index){
                    subBasicInfo(d, function(res){
                        if(res.code == '1'){
                            let d = res.data;

                            if(d.to_check) {
                                layer.msg(res.msg + ',管理审核之后才会修改对应数据项值！',{icon: 6,time: 3000},function(){
                                    if(!d.iszc) {
                                        toPageInit();
                                    }
                                    layer.close(index);
                                });
                            } else {
                                layer.msg(res.msg,{icon: 6,time: 1000},function(){
                                    layer.close(index);
                                });
                            }
                        }else{
                            layer.msg(res.msg, {icon: 5,shift : 6},function(){
                                toPageInit();
                                layer.close(index);
                            });
                        }
                    });
                }, function() {
                    toPageInit();
                }
            );
        }
    });
</script>
@endpush

@section('content')
<style>
    .layui-tab-title{background-color: #fff;}
    .layuik-panel{margin: 15px 0;padding: 20px 15px;border-radius:2px;background-color: #fff;}
    #archives-tab-content .layui-tab-item{min-height: 500px;}
    #basic-card, #manage-card{padding: 0 10px;box-shadow: none;}
    .list-head {padding-left: 20px;}
    .search-row{position: absolute; top: 10px; right: 0;}

    #basic-info-form .layuik-inline .layuik-form-label{width: 140px;}
    #manage-tab-content .layuik-inline .layuik-form-label{width: 180px;}
    #manage-tab-content .opt-panel{padding: 20px;}
    #manage-tab-content .panel-title h3{font-weight: 800;margin-bottom: 20px;}
    #manage-tab-content #add-form{padding: 20px 5px;}
    #manage-tab-content .opt-area{display: flex;flex-direction: row-reverse;padding: 10px 20px;margin-bottom: 20px;}
    #manage-tab-content .opt-area button{margin-left: 10px;}
    #manage-tab-content .layui-colla-content{padding: 10px 15px !important;}
    #manage-tab-content .tab-see{color: #2d8cf0;cursor: pointer;}
    #manage-tab-content .layui-table[lay-even] tr:nth-child(2n) {background-color: #ffffff !important;}
    #manage-tab-content .layui-colla-title{background-color: #fff;}
    #manage-tab-content .layui-collapse2{border:1px #eee solid;padding-top: 10px;}
    #manage-tab-content .layui-colla-content2{padding: 5px 15px !important;}
    #manage-tab-content .tab2-1-title{background-color: #fafafa;padding: 10px;border-top: 1px #eee solid;border-left: 1px #eee solid;border-right: 1px #eee solid;}
    #manage-tab-content .layui-colla-item2 h2 span{margin-right: 25px;}
    #manage-tab-content #textarea{overflow-y: hidden;height: 310px;border: 1px #eee solid;border-radius: 4px;padding: 20px;}
</style>

<!-- 表头工具栏 -->
<script type="text/html" id="positionToolbarHead">
    <div class="list-head">
        <h3></h3>
        <div class="layui-btn-container list-opt-btns">
            <button btnPermission="303" class="layui-btn layui-btn-normal" type="button" lay-event="add"> 新增 </button>
        </div>
    </div>
</script>
<script type="text/html" id="learnHistoryToolbarHead">
    <div class="list-head">
        <h3></h3>
        <div class="layui-btn-container list-opt-btns">
            <button btnPermission="303" class="layui-btn layui-btn-normal" type="button" lay-event="add"> 新增 </button>
        </div>
    </div>
</script>
<script type="text/html" id="workHistoryToolbarHead">
    <div class="list-head">
        <h3></h3>
        <div class="layui-btn-container list-opt-btns">
            <button btnPermission="303" class="layui-btn layui-btn-normal" type="button" lay-event="add"> 新增 </button>
        </div>
    </div>
</script>
<script type="text/html" id="assessmentToolbarHead">
    <div class="list-head">
        <h3></h3>
        <div class="layui-btn-container list-opt-btns">
            <button btnPermission="320" class="layui-btn layui-btn-normal" type="button" lay-event="add"> 新增 </button>
        </div>
    </div>
</script>

<script type="text/html" id="opPositionDemo">
    <a btnPermission="304" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" lay-event="edit">编辑</a>
    <a btnPermission="306" class="layui-btn layui-btn-primary layui-btn-xs" lay-event="del">删除</a>
</script>
<script type="text/html" id="opLearHistoryDemo">
    <a btnPermission="304" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" lay-event="edit">编辑</a>
    <a btnPermission="306" class="layui-btn layui-btn-primary layui-btn-xs" lay-event="del">删除</a>
</script>
<script type="text/html" id="opWorkHistoryDemo">
    <a btnPermission="304" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" lay-event="edit">编辑</a>
    <a btnPermission="306" class="layui-btn layui-btn-primary layui-btn-xs" lay-event="del">删除</a>
</script>
<script type="text/html" id="opAssessmentDemo">
    <a btnPermission="321" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" lay-event="edit">编辑</a>
    <a btnPermission="322" class="layui-btn layui-btn-primary layui-btn-xs" lay-event="del">删除</a>
</script>

<!-- 任教学科操作 -->
<script type="text/html" id="disciplineOpList">
    <a btnPermission="209" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('discipline.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 公开教学操作 -->
<script type="text/html" id="openOpList">
    <a btnPermission="214" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('open.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 经验交流操作 -->
<script type="text/html" id="experienceOpList">
    <a btnPermission="219" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('experience.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 项目化操作 -->
<script type="text/html" id="projectOpList">
    <a btnPermission="380" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('project.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 全员导师制操作 -->
<script type="text/html" id="teacherOpList">
    <a btnPermission="381" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('teaching.teacher.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 课题研究操作 -->
<script type="text/html" id="studyOpList">
    <a btnPermission="224" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('study.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 论文发表操作 -->
<script type="text/html" id="paperOpList">
    <a btnPermission="230" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('paper.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 论著发表操作 -->
<script type="text/html" id="treatiseOpList">
    <a btnPermission="235" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('treatise.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 开发科目操作 -->
<script type="text/html" id="subjectOpList">
    <a btnPermission="240" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('subject.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 直播管理操作 -->
<script type="text/html" id="liveOpList">
    <a btnPermission="255" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('live.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 教学反思操作 -->
<script type="text/html" id="reflectOpList">
    <a btnPermission="406" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('reflect.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 教研活动操作 -->
<script type="text/html" id="tactivityOpList">
    <!-- 管理查看 -->
    <!--<a btnPermission="245" class="layui-btn layui-btn-primary layui-border-orange layui-btn-xs" href="{{route('tactivity.readView')}}?id=@{{d.id}}">查看</a>-->
    <!-- 教师查看 -->
    <a btnPermission="246" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('tactivity.infoView')}}?id=@{{d.id}}&is_view=true">查看</a>
</script>

<!-- 班主任操作 -->
<script type="text/html" id="headmasterOpList">
    <a btnPermission="262" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('headmaster.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 计划和总结操作 -->
<script type="text/html" id="planOpList">
    <a btnPermission="267" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('plan.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 班级荣誉 -->
<script type="text/html" id="honorOpList">
    <a btnPermission="385" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('honor.honor.see')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 班队会操作 -->
<!-- <script type="text/html" id="meetingOpList">
    <a btnPermission="272" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('meeting.infoView')}}?id=@{{d.id}}">查看</a>
</script> -->
<!-- 主题活动操作 -->
<script type="text/html" id="themeOpList">
    <a btnPermission="277" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('theme.infoView')}}?id=@{{d.id}}">查看</a>
</script>

<!-- 开发课程操作 -->
<script type="text/html" id="coursesOpList">
    <a btnPermission="282" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('platform.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 学分培训操作 -->
<script type="text/html" id="creditsOpList">
    <a btnPermission="287" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('credits.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 参与教研操作 -->
<script type="text/html" id="researchOpList">
    <a btnPermission="310" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('research.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 外出培训操作 -->
<script type="text/html" id="outrainingOpList">
    <a btnPermission="289" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('outraining.infoView')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 其他培训操作 -->
<script type="text/html" id="otherOpList">
    <a btnPermission="294" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('other.infoView')}}?id=@{{d.id}}">查看</a>
</script>

<!-- 获奖情况操作 -->
<script type="text/html" id="wardsOpList">
    <a btnPermission="179" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('awards.wards.see')}}?id=@{{d.id}}">查看</a>
</script>

<!-- 带教情况操作 -->
<script type="text/html" id="workOpList">
    <a btnPermission="185" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('work.work.see')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 校内工作操作 -->
<script type="text/html" id="inworkOpList">
    <a btnPermission="190" class="layui-btn layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('work.inwork.see')}}?id=@{{d.id}}">查看</a>
</script>
<!-- 校外工作操作 -->
<script type="text/html" id="outworkOpList">
    <a btnPermission="195" class="layui-btn layui-btn layui-btn-primary layui-border-blue layui-btn-xs" href="{{route('work.outwork.see')}}?id=@{{d.id}}">查看</a>
</script>

<div class="layui-card" id="archives-card">
    <div class="layui-tab layui-tab-brief" lay-filter="archivesTab">
        <ul class="layui-tab-title">
            <li class="layui-this" lay-id="1">基本信息</li>
            <li lay-id="2">教育教学</li>
            <li lay-id="3">教研活动</li>
            <!--<li lay-id="4">实践活动</li>-->
            <li lay-id="4">班主任管理</li>
            <li lay-id="5">教师培训</li>
            <li lay-id="6">获奖情况</li>
            <li lay-id="7">重要工作</li>
        </ul>

        <div class="layui-row search-row layui-hide">
            <form id="searchForm" class="layui-form" action="">
                <div class="layui-form-item" id="term-item">
                    <div class="layui-inline">
                        <div class="layui-input-inline search-selector">
                            <select name="data_version_id" id="term-select" lay-filter="termTabList" data-role="termTabList"></select>
                        </div>
                    </div>
                </div>
            </form>
        </div>

        <div class="layui-tab-content" id="archives-tab-content">
            <!-- 基本信息 -->
            <div class="layui-tab-item layui-show">
                <div class="layui-card" id="basic-card">
                    <div class="layui-tab layui-tab-brief" lay-filter="basicTab">
                        <ul class="layui-tab-title">
                            <li class="layui-this" lay-id="1">基础信息</li>
                            <li lay-id="2">毕业院校</li>
                            <li lay-id="3">地址信息</li>
                            <li lay-id="4">职称</li>
                            <li lay-id="5">职务</li>
                            <li lay-id="6">学习经历</li>
                            <li lay-id="7">工作经历</li>
                            <!--<li lay-id="8">年度考核</li>-->
                        </ul>

                        <div class="layui-tab-content" id="basic-tab-content">
                            <!-- 基础信息 -->
                            <div class="layui-tab-item layui-show">
                                <form class="layui-form" action="" id="basic-info-form" lay-filter="basicInfoForm">
                                    <div class="layui-row">
                                        <div class="layuik-form-item layuik-columns-two">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">姓名：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="name" id="name-input" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">性别：</label>
                                                <div class="layuik-input-inline">
                                                    <select name="gender" lay-filter="genderList" data-role="genderList" lay-verify="required" lay-reqText="不能为空"></select>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layuik-form-item layuik-columns-two">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">身份证号：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="id_no" id="id-no-input" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">出生年月：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="birthday" id="birth-date" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layuik-form-item layuik-columns-two">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">民族：</label>
                                                <div class="layuik-input-inline">
                                                    <select name="nation" lay-filter="nationList" data-role="nationList" lay-verify="required" lay-reqText="不能为空" lay-search=""></select>
                                                </div>
                                            </div>
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">籍贯：</label>
                                                <div class="layuik-input-inline">
                                                    <div id="jiguan" class="xm-select-demo"></div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layuik-form-item layuik-columns-two">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">政治面貌：</label>
                                                <div class="layuik-input-inline">
                                                    <select name="political" lay-filter="politicalList" data-role="politicalList" lay-verify="required" lay-reqText="不能为空"></select>
                                                </div>
                                            </div>
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">参加日期：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="join_date" id="join-date" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layuik-form-item layuik-columns-two">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">移动电话：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="mobile" id="mobile-input" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">家庭电话：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="phone_num" id="phone-input" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layuik-form-item layuik-columns-two">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">教师资格证号：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="teacher_certificate_no" id="certificate-no-input" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">开始工作时间：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="work_date" id="work-date" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="houqing layui-hide">
                                            <div class="layuik-form-item layuik-columns-two">
                                                <div class="layuik-inline">
                                                    <label class="layuik-form-label">进入本单位日期：</label>
                                                    <div class="layuik-input-inline">
                                                        <input type="text" name="unit_date" id="unit-date" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                    </div>
                                                </div>
                                                <div class="layuik-inline">
                                                    <label class="layuik-form-label">师训号：</label>
                                                    <div class="layuik-input-inline">
                                                        <input type="text" name="teacher_no" id="teacher-no-input" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="layuik-form-item layuik-columns-two">
                                                <div class="layuik-inline">
                                                    <label class="layuik-form-label">电子邮箱：</label>
                                                    <div class="layuik-input-inline">
                                                        <input type="text" name="email" id="email-input" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                    </div>
                                                </div>
                                                <div class="layuik-inline">
                                                    <label class="layuik-form-label">主学科：</label>
                                                    <div class="layuik-input-inline">
                                                        <select name="major_subject" lay-filter="subjectList" data-role="subjectList" lay-verify="required" lay-reqText="不能为空"></select>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="zhengchang">
                                            <div class="layuik-form-item layuik-columns-two">
                                                <div class="layuik-inline">
                                                    <label class="layuik-form-label">从事教师工作时间：</label>
                                                    <div class="layuik-input-inline">
                                                        <input type="text" name="teaching_date" id="teaching-date" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                    </div>
                                                </div>
                                                <div class="layuik-inline">
                                                    <label class="layuik-form-label">进入本单位日期：</label>
                                                    <div class="layuik-input-inline">
                                                        <input type="text" name="unit_date" id="unit-date" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="layuik-form-item layuik-columns-two">
                                                <div class="layuik-inline">
                                                    <label class="layuik-form-label">师训号：</label>
                                                    <div class="layuik-input-inline">
                                                        <input type="text" name="teacher_no" id="teacher-no-input" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                    </div>
                                                </div>
                                                <div class="layuik-inline">
                                                    <label class="layuik-form-label">电子邮箱：</label>
                                                    <div class="layuik-input-inline">
                                                        <input type="text" name="email" id="email-input" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="layuik-form-item layuik-columns-two">
                                                <div class="layuik-inline">
                                                    <label class="layuik-form-label">主学科：</label>
                                                    <div class="layuik-input-inline">
                                                        <select name="major_subject" lay-filter="subjectList" data-role="subjectList" lay-verify="required" lay-reqText="不能为空"></select>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <!-- 毕业院校 -->
                            <div class="layui-tab-item">
                                <form class="layui-form" action="" id="basic-school-form" lay-filter="basicSchoolForm">
                                    <div class="layui-row">
                                        <div class="layuik-form-item layuik-columns-two">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">毕业院校：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="graduated_school" id="graduated-school-input" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">毕业日期：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="graduated_date" id="graduate-date" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layuik-form-item layuik-columns-two">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">学历：</label>
                                                <div class="layuik-input-inline">
                                                    <select name="academic" lay-filter="academicList" data-role="academicList" lay-verify="required" lay-reqText="不能为空"></select>
                                                </div>
                                            </div>
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">学位：</label>
                                                <div class="layuik-input-inline">
                                                    <select name="degree" lay-filter="degreeList" data-role="degreeList" lay-verify="required" lay-reqText="不能为空"></select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <!-- 地址信息 -->
                            <div class="layui-tab-item">
                                <form class="layui-form" action="" id="basic-address-form" lay-filter="basicAddressForm">
                                    <div class="layui-row">
                                        <div class="layuik-form-item layuik-columns-two">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">户籍地址：</label>
                                                <div class="layuik-input-inline">
                                                    <div id="huji" class="xm-select-demo"></div>
                                                </div>
                                            </div>
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">邮编地址：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="census_postcode" id="census-postcode-input" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layuik-form-item">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">户籍详细地址：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="census_address" id="census-address-input" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layuik-form-item layuik-columns-two">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">家庭地址：</label>
                                                <div class="layuik-input-inline">
                                                    <div id="jiating" class="xm-select-demo"></div>
                                                </div>
                                            </div>
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">邮编：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="home_postcode" id="home-postcode-input" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layuik-form-item">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">家庭详细地址：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="home_address" id="home-address-input" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <!-- 职称 -->
                            <div class="layui-tab-item">
                                <form class="layui-form" action="" id="basic-zhicheng-form" lay-filter="basicZhichengForm">
                                    <div class="layui-row">
                                        <div class="layuik-form-item layuik-columns-two">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">教师职称：</label>
                                                <div class="layuik-input-inline">
                                                    <select name="tea_title" lay-filter="title_teacherList" data-role="title_teacherList" lay-verify="required" lay-reqText="不能为空"></select>
                                                </div>
                                            </div>
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">获得日期：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="tea_gain_time" id="title-hd-date" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layuik-form-item layuik-columns-two">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">岗位等级：</label>
                                                <div class="layuik-input-inline">
                                                    <select name="tea_title_rank" lay-filter="title_teacher_rankList" data-role="title_teacher_rankList" lay-verify="required" lay-reqText="不能为空"></select>
                                                </div>
                                            </div>
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">聘任日期：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="tea_employ_time" id="title-pr-date" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layuik-form-item layuik-columns-two">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">管理岗位职称：</label>
                                                <div class="layuik-input-inline">
                                                    <select name="manage_title" lay-filter="title_manageList" data-role="title_manageList" lay-verify="required" lay-reqText="不能为空"></select>
                                                </div>
                                            </div>
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">获得日期：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="manage_gain_time" id="manage-hd-date" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layuik-form-item layuik-columns-two">
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">岗位等级：</label>
                                                <div class="layuik-input-inline">
                                                    <select name="manage_title_rank" lay-filter="title_manage_rankList" data-role="title_manage_rankList" lay-verify="required" lay-reqText="不能为空"></select>
                                                </div>
                                            </div>
                                            <div class="layuik-inline">
                                                <label class="layuik-form-label">聘任日期：</label>
                                                <div class="layuik-input-inline">
                                                    <input type="text" name="manage_employ_time" id="manage-pr-date" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <!-- 职务 -->
                            <div class="layui-tab-item">
                                <div class="layui-card">
                                    <table class="layui-hide" id="positionTable" lay-filter="positionTable" lay-data="{id: 'positionTable'}"></table>
                                </div>
                            </div>
                            <!-- 学校经历 -->
                            <div class="layui-tab-item">
                                <div class="layui-card">
                                    <table class="layui-hide" id="learnHistoryTable" lay-filter="learnHistoryTable" lay-data="{id: 'learnHistoryTable'}"></table>
                                </div>
                            </div>
                            <!-- 工作经历 -->
                            <div class="layui-tab-item">
                                <div class="layui-card">
                                    <table class="layui-hide" id="workHistoryTable" lay-filter="workHistoryTable" lay-data="{id: 'workHistoryTable'}"></table>
                                </div>
                            </div>
                            <!-- 年度考核 -->
                            <div class="layui-tab-item">
                                <div class="layui-card">
                                    <table class="layui-hide" id="assessmentTable" lay-filter="assessmentTable" lay-data="{id: 'assessmentTable'}"></table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 教育教学 -->
            <div class="layui-tab-item">
                <div class="layui-card">
                    <div class="list-head">
                        <h3>任教学科列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="disciplineTable" lay-filter="disciplineTable" lay-data="{id: 'disciplineTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="disciplinePageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>公开教学列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="openTable" lay-filter="openTable" lay-data="{id: 'openTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="openPageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>经验交流列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="experienceTable" lay-filter="experienceTable" lay-data="{id: 'experienceTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="experiencePageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>项目化列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="projectTable" lay-filter="projectTable" lay-data="{id: 'projectTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="projectPageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>全员导师制</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="teacherTable" lay-filter="teacherTable" lay-data="{id: 'teacherTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="teacherPageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>课题研究列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="studyTable" lay-filter="studyTable" lay-data="{id: 'studyTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="studyPageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>文章列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="paperTable" lay-filter="paperTable" lay-data="{id: 'paperTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="paperPageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>论著发表列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="treatiseTable" lay-filter="treatiseTable" lay-data="{id: 'treatiseTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="treatisePageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>开发科目列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="subjectTable" lay-filter="subjectTable" lay-data="{id: 'subjectTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="subjectPageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>教学反思（案例）列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="reflectTable" lay-filter="reflectTable" lay-data="{id: 'reflectTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="reflectPageBar" class="pagebar"></div></div>
                    </div>
                </div>
            </div>
            <!-- 教研活动 -->
            <div class="layui-tab-item">
                <div class="layui-card">
                    <div class="list-head">
                        <h3>教研活动列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="activityTable" lay-filter="activityTable" lay-data="{id: 'activityTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="activityPageBar" class="pagebar"></div></div>
                    </div>
                </div>
            </div>
            <!-- 实践活动 -->
            <div class="layui-tab-item">
                <div class="layui-card">
                    <div class="list-head">
                        <h3>班主任列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="headmasterTable" lay-filter="headmasterTable" lay-data="{id: 'headmasterTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="headmasterPageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>计划和总结列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="planTable" lay-filter="planTable" lay-data="{id: 'planTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="planPageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>班级荣誉</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="honorTable" lay-filter="honorTable" lay-data="{id: 'honorTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="honorPageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <!-- <div class="layui-card">
                    <div class="list-head">
                        <h3>班队会列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="meetingTable" lay-filter="meetingTable" lay-data="{id: 'meetingTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="meetingPageBar" class="pagebar"></div></div>
                    </div>
                </div> -->
                <div class="layui-card">
                    <div class="list-head">
                        <h3>班级主题活动列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="themeTable" lay-filter="themeTable" lay-data="{id: 'themeTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="themePageBar" class="pagebar"></div></div>
                    </div>
                </div>
            </div>
            <!-- 教师培训 -->
            <div class="layui-tab-item">
                <div class="layui-card">
                    <div class="list-head">
                        <h3>校本培训列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="coursesTable" lay-filter="coursesTable" lay-data="{id: 'coursesTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="coursesPageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>参与教研列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="creditsTable" lay-filter="creditsTable" lay-data="{id: 'creditsTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="creditsPageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>外出培训列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="outrainingTable" lay-filter="outrainingTable" lay-data="{id: 'outrainingTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="outrainingPageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>其他培训列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="otherTable" lay-filter="otherTable" lay-data="{id: 'otherTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="otherPageBar" class="pagebar"></div></div>
                    </div>
                </div>
            </div>
            <!-- 获奖情况 -->
            <div class="layui-tab-item">
                <div class="layui-card">
                    <div class="list-head">
                        <h3>获奖情况列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="awardTable" lay-filter="awardTable" lay-data="{id: 'awardTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="awardPageBar" class="pagebar"></div></div>
                    </div>
                </div>
            </div>
            <!-- 重要工作 -->
            <div class="layui-tab-item">
                <div class="layui-card">
                    <div class="list-head">
                        <h3>带教情况列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="teachworkTable" lay-filter="teachworkTable" lay-data="{id: 'teachworkTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="teachworkPageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>校内工作列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="inworkTable" lay-filter="inworkTable" lay-data="{id: 'inworkTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="inworkPageBar" class="pagebar"></div></div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="list-head">
                        <h3>校外工作列表</h3>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-hide" id="outworkTable" lay-filter="outworkTable" lay-data="{id: 'outworkTable'}"></table>
                        <div class="pagebarbox" style="text-align: end"><div id="outworkPageBar" class="pagebar"></div></div>
                    </div>
                </div>
            </div>
            <!-- 考核管理 -->
            <div class="layui-tab-item">
                <div class="layui-card" id="manage-card">
                    <div class="layui-tab layui-tab-brief" lay-filter="manageTab">
                        <ul class="layui-tab-title">
                            <li class="layui-this" lay-id="1">岗位竞聘</li>
                            <!-- <li lay-id="2">年度考核</li>
                            <li lay-id="3">人才梯队</li> -->
                        </ul>

                        <div class="layui-tab-content" id="manage-tab-content">
                            <!-- 岗位竞聘 -->
                            <div class="layui-tab-item layui-show">
                                <div class="layui-row">
                                    <div class="layui-panel opt-panel">
                                        <div class="panel-title">
                                            <h3>基础信息</h3>
                                        </div>
                                        <form class="layui-form" action="" lay-filter="formTest">
                                            <input type="text" name="id" style="display:none" value="" >
                                            <input type="text" name="job_id" style="display:none" value="" >
                                            <input type="text" name="data_version_id" style="display:none" value="" >
                                            <input type="text" name="old_level" style="display:none" value="" >
                                            <input type="text" name="apply_level" style="display:none" value="" >
                                            <input type="text" name="user_id" style="display:none" value="" >
                                            <input type="text" name="education" style="display:none" value="" >
                                            <input type="text" name="education_name" style="display:none" value="" >
                                            <input type="text" name="teaching_age" style="display:none" value="" >
                                            <input type="text" name="engage_age" style="display:none" value="" >
                                            <div class="layui-row" >
                                                <div class="layuik-form-item layuik-columns-three">
                                                    <div class="layuik-inline">
                                                        <label class="layuik-form-label">学年学期：</label>
                                                        <div class="layuik-input-inline">
                                                            <input disabled type="text" name="data_version_name" autocomplete="off" class="layui-input">
                                                        </div>
                                                    </div>
                                                    <div class="layuik-inline">
                                                        <label class="layuik-form-label">教师姓名：</label>
                                                        <div class="layuik-input-inline">
                                                            <input disabled type="text" name="name" autocomplete="off" class="layui-input">
                                                        </div>
                                                    </div>
                                                    <div class="layuik-inline">
                                                        <label class="layuik-form-label">参加教育工作时间：</label>
                                                        <div class="layuik-input-inline">
                                                            <input disabled type="text" name="join_job_date" autocomplete="off" class="layui-input">
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="layuik-form-item layuik-columns-three">
                                                    <div class="layuik-inline">
                                                        <label class="layuik-form-label">原岗位等级：</label>
                                                        <div class="layuik-input-inline">
                                                            <input disabled type="text" name="old_level_name" autocomplete="off" class="layui-input">
                                                        </div>
                                                    </div>
                                                    <div class="layuik-inline">
                                                        <label class="layuik-form-label">原岗位聘任日期：</label>
                                                        <div class="layuik-input-inline">
                                                            <input disabled type="text" name="engage_date" autocomplete="off" class="layui-input">
                                                        </div>
                                                    </div>
                                                    <div class="layuik-inline">
                                                        <label class="layuik-form-label">申报岗位：</label>
                                                        <div class="layuik-input-inline">
                                                            <input disabled type="text" name="apply_level_name" autocomplete="off" class="layui-input">
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="layuik-form-item layuik-columns-three" >
                                                    <div class="layuik-inline">
                                                        <label class="layuik-form-label">任教学科：</label>
                                                        <div class="layuik-input-inline">
                                                            <input disabled type="text" name="subject" autocomplete="off" class="layui-input">
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>

                                <div class="layui-row" style="margin-top:10px;margin-bottom: 100px;">
                                    <div class="layui-panel opt-panel">
                                        <div class="panel-title">
                                            <h3>考核内容</h3>
                                        </div>
                                        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                                            <ul class="layui-tab-title" id="tab-1">
                                                <li class="layui-this" lay-id="1">申报理由</li>
                                                <li lay-id="2">发展性项目</li>
                                            </ul>
                                            <div class="layui-tab-content">
                                                <div class="layui-tab-item layui-show">
                                                    <form class="layui-form" action="" lay-filter="formTest2">
                                                        <div>
                                                            <div id="textarea" ></div>
                                                            <div>
                                                                <table class="layui-table" lay-skin="line">
                                                                    <colgroup>
                                                                        <col width="20%">
                                                                        <col width="20%">
                                                                        <col width="40%">
                                                                        <col width="20%">
                                                                    </colgroup>
                                                                    <thead>
                                                                        <tr>
                                                                        <th>基础性项目</th>
                                                                        <th></th>
                                                                        <th>情况说明</th>
                                                                        <th>参考分数</th>
                                                                        </tr>
                                                                    </thead>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td>学历水平</td>
                                                                            <td id="xlsp" ></td>
                                                                            <td><input type="text" name="comment[1]" class="layui-input" value=""></td>
                                                                            <td><input disabled type="text" name="scores[1]"  class="layui-input" value="" ></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>“十三五”360培训</td>
                                                                            <td><select name="training" lay-filter="training" ><option value="" >请选择</option><option value="1" >完成</option><option value="2" >未完成</option></select></td>
                                                                            <td><input type="text" name="comment[2]" class="layui-input comment2" value=""></td>
                                                                            <td><input disabled type="text" name="scores[2]"  class="layui-input scores2" value="" ></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>教龄</td>
                                                                            <td id="jl" ></td>
                                                                            <td><input type="text" name="comment[3]" class="layui-input" value=""></td>
                                                                            <td><input disabled type="text" name="scores[3]"  class="layui-input" value="" ></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>职称聘任年限</td>
                                                                            <td id="prnx" ></td>
                                                                            <td><input type="text" name="comment[4]" class="layui-input" value=""></td>
                                                                            <td><input disabled type="text" name="scores[4]"  class="layui-input" value="" ></td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                    </form>
                                                </div>
                                                <div class="layui-tab-item">
                                                    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief2">
                                                        <ul class="layui-tab-title" id="tab-2">
                                                            <li class="layui-this" lay-id="1">获奖情况</li>
                                                            <li lay-id="2">教科研</li>
                                                            <li lay-id="4">兼职工作</li>
                                                            <li lay-id="5">公开教学</li>
                                                            <li lay-id="6">辅导学生获奖</li>
                                                            <li lay-id="7">带教情况</li>
                                                            <li lay-id="8">其他发展项目</li>
                                                            <li lay-id="9">重要工作贡献</li>
                                                        </ul>
                                                        <div class="layui-tab-content">
                                                            <div class="layui-tab-item layui-show" id="view-tab2-1">
                                                            </div>
                                                            <div class="layui-tab-item" id="view-tab2-2">
                                                            </div>
                                                            <div class="layui-tab-item" id="view-tab2-4">
                                                            </div>
                                                            <div class="layui-tab-item" id="view-tab2-5">
                                                            </div>
                                                            <div class="layui-tab-item" id="view-tab2-6">
                                                            </div>
                                                            <div class="layui-tab-item" id="view-tab2-7">
                                                            </div>
                                                            <div class="layui-tab-item" id="view-tab2-8">
                                                            </div>
                                                            <div class="layui-tab-item" id="view-tab2-9">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-row">
                                            <div class="opt-area">
                                                <a href="javascript:history.go(-1);" ><button class="layui-btn layui-btn-primary" type="button">返回</button></a>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- 年度考核 -->
                            <!-- <div class="layui-tab-item">年度考核</div> -->
                            <!-- 人才梯队 -->
                            <!-- <div class="layui-tab-item">人才梯队</div> -->
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script id="tab2_1" type="text/html">
    <p class="tab2-1-title" >个人获奖情况 <span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}}

                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>类型</th>
                            <th>名称</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>级别</th>
                            <th>等级</th>
                            <th>状态</th>
                            <th>创建人</th>
                            <th>操作</th>
                            </tr>
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{# if(v2.category_array.length>0){ }} @{{v2.category_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{v2.end_date}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.grade_array.length>0){ }} @{{v2.grade_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td>@{{v2.nickname}}</td>
                            <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span>&nbsp;&nbsp;&nbsp;&nbsp;<span jad-id="@{{v.job_apply_details.id}}" modules-id="@{{v2.id}}" class="tab-see del-data">删除</span></td>
                            </tr>
                            @{{#  }); }}
                        </tbody>
                    </table>
                @{{# } }}
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>
<script id="tab2_2" type="text/html">
    <p class="tab2-1-title" >课题<span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d[2], function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}}

                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>课题名称</th>
                            <th>类别</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>级别</th>
                            <th>主持人</th>
                            <th>课题阶段</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr>
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{# if(v2.activity_category == 'EW_SUBJECT_RESEARCH_TABLE'){ }} 教育 @{{# }else if(v2.activity_category == 'TEARRESEARCH_SUBJECT_STUDY_TABLE'){ }} 教学 @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{v2.end_date}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.compere.length>0){ }} @{{v2.compere[0].user.nickname}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.stage == '1'){ }} 申报阶段 @{{# }else if(v2.stage == '2'){ }} 立项阶段 @{{# }else if(v2.stage == '3'){ }} 中期阶段 @{{# }else if(v2.stage == '4'){ }} 结项阶段 @{{# }else{ }} @{{# } }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td><span class="tab-see see-data"  scale-index="@{{v.job_apply_details.scale_index}}" jad-id="@{{v2.id}}"  >查看</span>&nbsp;&nbsp;&nbsp;&nbsp;<span jad-id="@{{v.job_apply_details.id}}" modules-id="@{{v2.id}}" class="tab-see del-data">删除</span></td>
                            </tr>
                            @{{#  }); }}
                        </tbody>
                    </table>
                @{{# } }}
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
    <br>
    <p class="tab2-1-title" >发表或交流</p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d[3], function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}}

                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>主题名称</th>
                            <th>类别</th>
                            <th>日期</th>
                            <th>级别</th>
                            <th>学科</th>
                            <th>接待课</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr>
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{# if(v2.activity_category == 'EW_EXCHANGE_EXPERIENCE_TABLE'){ }} 教育 @{{# }else if(v2.activity_category == 'TEARRESEARCH_EXCHANGE_TABLE'){ }} 教学 @{{# }else{ }}  @{{# } }}</td>

                            <td>@{{v2.begin_date}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.course_set.length>0){ }} @{{v2.course_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.reception_class_set.length>0){ }} @{{v2.reception_class_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td><span class="tab-see see-data" scale-index="@{{v.job_apply_details.scale_index}}" jad-id="@{{v2.id}}"  >查看</span>&nbsp;&nbsp;&nbsp;&nbsp;<span jad-id="@{{v.job_apply_details.id}}" modules-id="@{{v2.id}}" class="tab-see del-data">删除</span></td>
                            </tr>
                            @{{#  }); }}
                        </tbody>
                    </table>
                @{{# } }}
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>
<script id="tab2_4" type="text/html">
    <p class="tab2-1-title" >兼职工作<span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}}

                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="15%">
                            <col width="15%">
                            <col width="15%">
                            <col width="15%">
                            <col width="15%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>班级名称</th>
                            <th>正副情况</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>操作</th>
                            </tr>
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{v2.term.title}}</td>
                            <td>@{{# if(v2.grade_set.length>0 && v2.class_set.length>0){ }} @{{v2.class_set[0].selectValue}}@{{v2.grade_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.chief_set.length>0){ }} @{{v2.chief_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{v2.end_date}}</td>
                            <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span>&nbsp;&nbsp;&nbsp;&nbsp;<span jad-id="@{{v.job_apply_details.id}}" modules-id="@{{v2.id}}" class="tab-see del-data">删除</span></td>
                            </tr>
                            @{{#  }); }}
                        </tbody>
                    </table>
                @{{# } }}
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>
<script id="tab2_5" type="text/html">
    <p class="tab2-1-title" >公开教学<span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}}

                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>课题名称</th>
                            <th>日期</th>
                            <th>学科</th>
                            <th>年级</th>
                            <th>班级</th>
                            <th>创建人</th>
                            <th>创建时间</th>
                            <th>操作</th>
                            </tr>
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{# if(v2.course_set.length>0){ }} @{{v2.course_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.grade_array.length>0){ }} @{{v2.grade_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.class_item_set.length>0){ }} @{{v2.class_item_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.creator){ }} @{{v2.creator.nickname}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.created_at}}</td>
                            <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span>&nbsp;&nbsp;&nbsp;&nbsp;<span jad-id="@{{v.job_apply_details.id}}" modules-id="@{{v2.id}}" class="tab-see del-data">删除</span></td>
                            </tr>
                            @{{#  }); }}
                        </tbody>
                    </table>
                @{{# } }}
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>
<script id="tab2_6" type="text/html">
    <p class="tab2-1-title" >辅导学生获奖<span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}}

                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>类型</th>
                            <th>名称</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>级别</th>
                            <th>等级</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr>
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{# if(v2.category_array.length>0){ }} @{{v2.category_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{v2.end_date}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.grade_array.length>0){ }} @{{v2.grade_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span>&nbsp;&nbsp;&nbsp;&nbsp;<span jad-id="@{{v.job_apply_details.id}}" modules-id="@{{v2.id}}" class="tab-see del-data">删除</span></td>
                            </tr>
                            @{{#  }); }}
                        </tbody>
                    </table>
                @{{# } }}
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>
<script id="tab2_7" type="text/html">
    <p class="tab2-1-title" >带教情况<span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">
                @{{v.title}}
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>活动名称</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>带教教师</th>
                            <th>所在学校</th>
                            <th>级别</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr>
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{v2.end_date}}</td>
                            <td>@{{v2.teacher_name}}</td>
                            <td>@{{v2.school_name}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span>&nbsp;&nbsp;&nbsp;&nbsp;<span jad-id="@{{v.job_apply_details.id}}" modules-id="@{{v2.id}}" class="tab-see del-data">删除</span></td>
                            </tr>
                            @{{#  }); }}
                        </tbody>
                    </table>
                @{{# } }}
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>
<script id="tab2_8" type="text/html">
    <p class="tab2-1-title" >其他专业发展项目<span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">
                @{{v.title}}
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>课题名称</th>
                            <th>日期</th>
                            <th>学科</th>
                            <th>年级</th>
                            <th>班级</th>
                            <th>创建人</th>
                            <th>创建时间</th>
                            <th>操作</th>
                            </tr>
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{# if(v2.course_set.length>0){ }} @{{v2.course_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.grade_array.length>0){ }} @{{v2.grade_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.class_item_set.length>0){ }} @{{v2.class_item_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.creator){ }} @{{v2.creator.nickname}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.created_at}}</td>
                            <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span>&nbsp;&nbsp;&nbsp;&nbsp;<span jad-id="@{{v.job_apply_details.id}}" modules-id="@{{v2.id}}" class="tab-see del-data">删除</span></td>
                            </tr>
                            @{{#  }); }}
                        </tbody>
                    </table>
                @{{# } }}
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>
<script id="tab2_9" type="text/html">
    <p class="tab2-1-title" >参与学校重要工作，并作出贡献<span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">
                @{{v.title}}
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(!$.isEmptyObject(v.apply_data)){ }}
                    <!--带教情况-->
                    @{{# if( typeof(v.apply_data.IMPORTANTWORK_TEACHING_SITUATION_TABLE) != "undefined" ){ }}
                        <p style="color: #b9b5b5;" >带教情况</p>
                        <table class="layui-table" lay-even="" lay-skin="nob">
                            <colgroup>
                                <col width="10%">
                                <col width="20%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col>
                            </colgroup>
                            <thead>
                                <tr>
                                <th>学年学期</th>
                                <th>活动名称</th>
                                <th>开始日期</th>
                                <th>结束日期</th>
                                <th>带教教师</th>
                                <th>所在学校</th>
                                <th>级别</th>
                                <th>状态</th>
                                <th>操作</th>
                                </tr>
                            </thead>
                            <tbody style="color:#797979" >
                                @{{#  layui.each(v.apply_data.IMPORTANTWORK_TEACHING_SITUATION_TABLE, function(k2, v2){ }}
                                <tr>
                                <td>@{{# if(v2.data_version_name === null){ }} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                                <td>@{{v2.name}}</td>
                                <td>@{{v2.begin_date}}</td>
                                <td>@{{v2.end_date}}</td>
                                <td>@{{v2.teacher_name}}</td>
                                <td>@{{v2.school_name}}</td>
                                <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                                <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                                <td><span class="tab-see see-data" jad-id="@{{v2.id}}" type="1" >查看</span>&nbsp;&nbsp;&nbsp;&nbsp;<span jad-id="@{{v.job_apply_details.id}}" modules-id="@{{v2.id}}" class="tab-see del-data">删除</span></td>
                                </tr>
                                @{{#  }); }}
                            </tbody>
                        </table>
                    @{{# } }}
                    <!--校内工作-->
                    @{{# if( typeof(v.apply_data.IMPORTANTWORK_IN_SCHOOL_TABLE) != "undefined" ){ }}
                        <p style="color: #b9b5b5;">校内工作</p>
                        <table class="layui-table" lay-even="" lay-skin="nob">
                            <colgroup>
                                <col width="10%">
                                <col width="20%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="20%">
                                <col>
                            </colgroup>
                            <thead>
                                <tr>
                                <th>学年学期</th>
                                <th>学校重要工作</th>
                                <th>日期</th>
                                <th>主持人</th>
                                <th>参与人</th>
                                <th>状态</th>
                                <th>创建人</th>
                                <th>操作</th>
                                </tr>
                            </thead>
                            <tbody style="color:#797979" >
                                @{{#  layui.each(v.apply_data.IMPORTANTWORK_IN_SCHOOL_TABLE, function(k2, v2){ }}
                                <tr>
                                <td>@{{# if(v2.data_version_name === null){ }} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                                <td>@{{v2.name}}</td>
                                <td>@{{v2.date}}</td>
                                <td>@{{v2.compere}}</td>
                                <td>@{{v2.participants.length}}</td>
                                <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                                <td>@{{v2.nickname}}</td>
                                <td><span class="tab-see see-data" jad-id="@{{v2.id}}" type="2" >查看</span>&nbsp;&nbsp;&nbsp;&nbsp;<span jad-id="@{{v.job_apply_details.id}}" modules-id="@{{v2.id}}" class="tab-see del-data">删除</span></td>
                                </tr>
                                @{{#  }); }}
                            </tbody>
                        </table>
                    @{{# } }}
                    <!--校外工作-->
                    @{{# if( typeof(v.apply_data.IMPORTANTWORK_OUT_SCHOOL_TABLE) != "undefined" ){ }}
                        <p style="color: #b9b5b5;">校外工作</p>
                        <table class="layui-table" lay-even="" lay-skin="nob">
                            <colgroup>
                                <col width="10%">
                                <col width="20%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="20%">
                                <col>
                            </colgroup>
                            <thead>
                                <tr>
                                <th>学年学期</th>
                                <th>工作内容摘要</th>
                                <th>日期</th>
                                <th>主持人</th>
                                <th>参与人</th>
                                <th>状态</th>
                                <th>创建人</th>
                                <th>操作</th>
                                </tr>
                            </thead>
                            <tbody style="color:#797979" >
                                @{{#  layui.each(v.apply_data.IMPORTANTWORK_OUT_SCHOOL_TABLE, function(k2, v2){ }}
                                <tr>
                                <td>@{{# if(v2.data_version_name === null){ }} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                                <td>@{{v2.name}}</td>
                                <td>@{{v2.date}}</td>
                                <td>@{{v2.compere}}</td>
                                <td>@{{v2.participants.length}}</td>
                                <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                                <td>@{{v2.nickname}}</td>
                                <td><span class="tab-see see-data" jad-id="@{{v2.id}}" type="3" >查看</span>&nbsp;&nbsp;&nbsp;&nbsp;<span jad-id="@{{v.job_apply_details.id}}" modules-id="@{{v2.id}}" class="tab-see del-data">删除</span></td>
                                </tr>
                                @{{#  }); }}
                            </tbody>
                        </table>
                    @{{# } }}

                @{{# } }}
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>

<!-- 新增编辑界面 -->
<div id="position-item" style="display: none;padding: 20px 40px">
    <form class="layui-form" action="" id="positionForm" lay-filter="positionForm">
        <div class="layui-form-item">
            <label class="layui-form-label">学年学期:</label>
            <div class="layui-input-block">
                <select class="data-version-id" name="data_version_id" lay-filter="termList" data-role="termList" lay-verify="required" lay-reqText="不能为空"></select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">职务:</label>
            <div class="layui-input-block">
                <select name="title" lay-filter="positionList" data-role="positionList" lay-verify="required" lay-reqText="不能为空"></select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开始时间:</label>
            <div class="layui-input-block">
                <input type="text" name="begin_date" id="position-begin-date" required lay-verify="required" placeholder="请选择" lay-reqText="不能为空" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">结束时间:</label>
            <div class="layui-input-block">
                <input type="text" name="end_date" id="position-end-date" required lay-verify="required" placeholder="请选择" lay-reqText="不能为空" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <button class="layui-btn  layui-btn-normal" lay-submit lay-filter="positionSub"> 提交</button>
                <input type="hidden" name="id" value="0">
                <input type="hidden" name="user_id" value="0">
            </div>
        </div>
    </form>
</div>
<div id="learn-history-item" style="display: none;padding: 20px 40px">
    <form class="layui-form" action="" id="learnHistoryForm" lay-filter="learnHistoryForm">
        <div class="layui-form-item">
            <label class="layui-form-label">毕业院校:</label>
            <div class="layui-input-block">
                <input type="text" name="name" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开始时间:</label>
            <div class="layui-input-block">
                <input type="text" name="begin_time" id="learn-begin-date" required lay-verify="required" placeholder="请选择" lay-reqText="不能为空" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">结束时间:</label>
            <div class="layui-input-block">
                <input type="text" name="end_time" id="learn-end-date" required lay-verify="required" placeholder="请选择" lay-reqText="不能为空" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">证明人:</label>
            <div class="layui-input-block">
                <input type="text" name="certifier" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <button class="layui-btn  layui-btn-normal" lay-submit lay-filter="learnSub"> 提交</button>
                <input type="hidden" name="id" value="0">
                <input type="hidden" name="user_id" value="0">
            </div>
        </div>
    </form>
</div>
<div id="work-history-item" style="display: none;padding: 20px 40px">
    <form class="layui-form" action="" id="workHistoryForm" lay-filter="workHistoryForm">
        <div class="layui-form-item">
            <label class="layui-form-label">工作单位:</label>
            <div class="layui-input-block">
                <input type="text" name="name" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开始时间:</label>
            <div class="layui-input-block">
                <input type="text" name="begin_time" id="work-begin-date" required lay-verify="required" placeholder="请选择" lay-reqText="不能为空" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">结束时间:</label>
            <div class="layui-input-block">
                <input type="text" name="end_time" id="work-end-date" required lay-verify="required" placeholder="请选择" lay-reqText="不能为空" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <button class="layui-btn  layui-btn-normal" lay-submit lay-filter="workSub"> 提交</button>
                <input type="hidden" name="id" value="0">
                <input type="hidden" name="user_id" value="0">
            </div>
        </div>
    </form>
</div>
<div id="assessment-item" style="display: none;padding: 20px 40px">
    <form class="layui-form" action="" id="assessmentForm" lay-filter="assessmentForm">
        <div class="layui-form-item">
            <label class="layui-form-label">考核年度:</label>
            <div class="layui-input-block">
                <input type="text" name="year" id="assess-date" required lay-verify="required" placeholder="请选择" lay-reqText="不能为空" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">考核情况:</label>
            <div class="layui-input-block">
                <select name="situation" lay-filter="situationList" data-role="situationList" lay-verify="required" lay-reqText="不能为空"></select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <button class="layui-btn  layui-btn-normal" lay-submit lay-filter="assessmentSub"> 提交</button>
                <input type="hidden" name="id" value="0">
                <input type="hidden" name="user_id" value="0">
            </div>
        </div>
    </form>
</div>
@endsection
